コード例 #1
0
ファイル: peframe.py プロジェクト: PROJECT-ARES/peframe
def show_info(filename):
	info = pecore.get_info(filename)
	now  = datetime.datetime.now()
	date = now.strftime("%Y-%m-%d %H:%M")
	name = info[0]
	size = info[1]
	time = datetime.datetime.fromtimestamp(info[2])
	dll  = info[3]
	sect = info[4]
	if dll:
		dll = "Yes"
	else:
		dll = "No"
	return VERSION,str(date),str(name),str(size),str(time),dll,str(sect)
コード例 #2
0
ファイル: peframe.py プロジェクト: doniexun/peframe
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))
コード例 #3
0
ファイル: peframe.py プロジェクト: brifordwylie/peframe
def show_info(filename):
	info = pecore.get_info(filename)
	name = info[0]
	size = info[1]
	time = datetime.datetime.fromtimestamp(info[2])
	dll  = info[3]
	sect = info[4]
	print "File Name".ljust(18), str(name)
	print "File Size".ljust(18), str(size), "byte"
	print "Compile Time".ljust(18), str(time)
	if dll:
		print "DLL".ljust(18), "Yes"
	else:
		print "DLL".ljust(18), "No"
	print "Sections".ljust(18), str(sect)
コード例 #4
0
ファイル: peframe.py プロジェクト: PolymorhicCode/peframe
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))
コード例 #5
0
def show_info(filename):
	info = pecore.get_info(filename)
	name = info[0]
	size = info[1]
	time = datetime.datetime.fromtimestamp(info[2])
	dll  = info[3]
	sect = info[4]
        file1 = open("/tmp/info.txt", "w")
        file1.write("File Name".ljust(18) + str(name))
        file1.write("File Size".ljust(18) + str(size) + "byte")
        file1.write("Compile Time".ljust(18) + str(time))
	if dll:
		file1.write("DLL".ljust(18)+ "Yes")
	else:
		file1.write("DLL".ljust(18)+ "No")
	file1.write("Sections".ljust(18)+ str(sect))
        file1.close()
コード例 #6
0
def show_info(filename):
    info = pecore.get_info(filename)
    name = info[0]
    size = info[1]
    time = datetime.datetime.fromtimestamp(info[2])
    dll = info[3]
    sect = info[4]
    file1 = open("/tmp/info.txt", "w")
    file1.write("File Name".ljust(18) + str(name))
    file1.write("File Size".ljust(18) + str(size) + "byte")
    file1.write("Compile Time".ljust(18) + str(time))
    if dll:
        file1.write("DLL".ljust(18) + "Yes")
    else:
        file1.write("DLL".ljust(18) + "No")
    file1.write("Sections".ljust(18) + str(sect))
    file1.close()