def check_packer(filename): peid = pecore.check_peid(filename) if peid: peid = "Yes" else: peid = "No" return peid
def show_packer(filename): peid = pecore.check_peid(filename) if peid != None: len_peid = len(peid) print "\nPacker matched [" + str(len_peid) + "]" print "-"*60 for i in range(0, len_peid): print "Packer".ljust(18), peid[i][0]
def show_packer(filename): peid = pecore.check_peid(filename) peid_list = [] if peid != None: len_peid = len(peid) for i in range(0, len_peid): peid_list.append(peid[i][0]) return peid_list
def show_packer(filename): peid = pecore.check_peid(filename) if peid != None: len_peid = len(peid) file2 = open("/tmp/packer.txt", "w") file2.write("\nPacker matched [" + str(len_peid) + "]") print "-"*60 file2.write("-"*60) for i in range(0, len_peid): file2.write("Packer".ljust(18)+ peid[i][0]) file2.close()
def show_packer(filename): peid = pecore.check_peid(filename) if peid != None: len_peid = len(peid) file2 = open("/tmp/packer.txt", "w") file2.write("\nPacker matched [" + str(len_peid) + "]") print "-" * 60 file2.write("-" * 60) for i in range(0, len_peid): file2.write("Packer".ljust(18) + peid[i][0]) file2.close()
def check_packer(filename): peid = pecore.check_peid(filename) if peid: print "Packer".ljust(18), "Yes" else: print "Packer".ljust(18), "No"