示例#1
0
def autoanalysis(pe, filename, isjson=False):
	if isjson:
		final = { }
		final['info'] = pecore.get_info(pe, filename)
		final['cert'] = pecore.get_cert(pe)
		final['packer'] = pecore.get_packer(pe)
		final['antidbg'] = pecore.get_antidbg(pe)
		final['antivm'] = pecore.get_antivm(filename)
		final['apialert'] = pecore.get_apialert(pe)
		final['secalert'] = pecore.get_secalert(pe)
		final['urialert'] = pecore.get_fileurl(filename)
		final['meta'] = pecore.get_meta(pe)
		
		print json.dumps(final)

	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_xor(filename), \
			pecore.get_apialert(pe), \
			pecore.get_secalert(pe), \
			pecore.get_fileurl(filename), \
			pecore.get_meta(pe))
示例#2
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_xor(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_xor(filename), \
			pecore.get_apialert(pe), \
			pecore.get_secalert(pe), \
			pecore.get_fileurl(filename), \
			pecore.get_meta(pe))