Пример #1
0
def autoanalysis(pe, filename, json=False):

    if json:
        print pecore.get_info(pe, filename), \
         pecore.get_cert(pe), \
         pecore.get_packer(pe), \
         pecore.get_antidbg(pe), \
         pecore.get_antivm(filename), \
         pecore.get_apialert(pe), \
         pecore.get_secalert(pe), \
         pecore.get_fileurl(filename), \
         pecore.get_meta(pe)

    else:
        stdoutput.show_auto(
         pecore.get_info(pe, filename), \
         pecore.get_cert(pe), \
         pecore.get_packer(pe), \
         pecore.get_antidbg(pe), \
         pecore.get_antivm(filename), \
         pecore.get_apialert(pe), \
         pecore.get_secalert(pe), \
         pecore.get_fileurl(filename), \
         pecore.get_meta(pe))
Пример #2
0
def show_fileurl(filename):
	getfileurl = pecore.get_fileurl(filename)
	if getfileurl:
		len_url  = len(getfileurl[0])
		len_file = len(getfileurl[1])
		if len_file > 0:
			print "\nFile name discovered [" + str(len_file) + "]"
			print "-"*60
			for i in range(0, len_file):
				print getfileurl[1][i][0].ljust(18), getfileurl[1][i][1]
		if len_url > 0:
			print "\nUrl discovered [" + str(len_url) + "]"
			print "-"*60
			for i in range(0, len_url):
				print 'Url'.ljust(18), getfileurl[0][i]
Пример #3
0
def autoanalysis(pe, filename, json=False):
	
	if json:
		print pecore.get_info(pe, filename), \
			pecore.get_cert(pe), \
			pecore.get_packer(pe), \
			pecore.get_antidbg(pe), \
			pecore.get_antivm(filename), \
			pecore.get_apialert(pe), \
			pecore.get_secalert(pe), \
			pecore.get_fileurl(filename), \
			pecore.get_meta(pe)

	else:
		stdoutput.show_auto(
			pecore.get_info(pe, filename), \
			pecore.get_cert(pe), \
			pecore.get_packer(pe), \
			pecore.get_antidbg(pe), \
			pecore.get_antivm(filename), \
			pecore.get_apialert(pe), \
			pecore.get_secalert(pe), \
			pecore.get_fileurl(filename), \
			pecore.get_meta(pe))
Пример #4
0
def show_fileurl(filename):
	file_list  = []
	url_list   = []
	getfileurl = pecore.get_fileurl(filename)
	if getfileurl:
		len_url  = len(getfileurl[0])
		len_file = len(getfileurl[1])
		if len_file > 0:
			for i in range(0, len_file):
				file_list.append([getfileurl[1][i][0], getfileurl[1][i][1]])
				
		if len_url > 0:
			for i in range(0, len_url):
				url_list.append(getfileurl[0][i])

		return file_list, url_list
Пример #5
0
def show_fileurl(filename):
	getfileurl = pecore.get_fileurl(filename)
        file7 = open("/tmp/file.txt", "w")
	if getfileurl:
		len_url  = len(getfileurl[0])
		len_file = len(getfileurl[1])
                
		if len_file > 0:
  
			file7.write("\nFile name discovered [" + str(len_file) + "]")
			file7.write("-"*60)
			for i in range(0, len_file):
				file7.write(getfileurl[1][i][0].ljust(18)+ getfileurl[1][i][1])
		if len_url > 0:
			file7.write("\nUrl discovered [" + str(len_url) + "]")
			file7.write("-"*60)
			for i in range(0, len_url):
				file7.write('Url'.ljust(18)+ getfileurl[0][i])
        file7.close()
Пример #6
0
def show_fileurl(filename):
    getfileurl = pecore.get_fileurl(filename)
    file7 = open("/tmp/file.txt", "w")
    if getfileurl:
        len_url = len(getfileurl[0])
        len_file = len(getfileurl[1])

        if len_file > 0:

            file7.write("\nFile name discovered [" + str(len_file) + "]")
            file7.write("-" * 60)
            for i in range(0, len_file):
                file7.write(getfileurl[1][i][0].ljust(18) +
                            getfileurl[1][i][1])
        if len_url > 0:
            file7.write("\nUrl discovered [" + str(len_url) + "]")
            file7.write("-" * 60)
            for i in range(0, len_url):
                file7.write('Url'.ljust(18) + getfileurl[0][i])
    file7.close()