Beispiel #1
0
def show_suspicious(filename):
	apialert = pecore.get_apialert(filename)
	if apialert:
		len_apialert = len(apialert)
		print "\nSuspicious API discovered [" + str(len_apialert) + "]"
		print "-"*60
		for i in range(0, len_apialert):
			print 'Function'.ljust(18), apialert[i]
Beispiel #2
0
def show_suspicious(filename):
	apialert_list = []
	apialert      = pecore.get_apialert(filename)
	if apialert:
		len_apialert = len(apialert)
		for i in range(0, len_apialert):
			apialert_list.append(apialert[i])	
		return apialert_list
Beispiel #3
0
def show_suspicious(filename):
    apialert = pecore.get_apialert(filename)
    file5 = open("/tmp/susApi.txt", "w")
    if apialert:
        len_apialert = len(apialert)

        file5.write("\nSuspicious API discovered [" + str(len_apialert) + "]")
        file5.write("-" * 60)
        for i in range(0, len_apialert):
            file5.write('Function'.ljust(18) + apialert[i])
        file5.close()
def show_suspicious(filename):
	apialert = pecore.get_apialert(filename)
        file5 = open("/tmp/susApi.txt", "w")
	if apialert:
		len_apialert = len(apialert)
                
                
		file5.write("\nSuspicious API discovered [" + str(len_apialert) + "]")
		file5.write("-"*60)
		for i in range(0, len_apialert):
			file5.write('Function'.ljust(18) + apialert[i])
                file5.close()
Beispiel #5
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))
Beispiel #6
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))