print "DIRECTORY EXPORT" print directory.get_export(suspicious_file) elif sys.argv[1] == "--dir-resource": print "DIRECTORY RESOURCE" print directory.get_resource(suspicious_file) elif sys.argv[1] == "--dir-debug": print "DIRECTORY DEBUG" print directory.get_debug(suspicious_file) elif sys.argv[1] == "--dir-tls": print "DIRECTORY TLS" print directory.get_tls(suspicious_file) elif sys.argv[1] == "--dump": print dump.get(suspicious_file) elif sys.argv[1] == "--export": print "EXPORTED FUNCTIONS AND ADRESSES" list = export_function.get(suspicious_file) for elem in list: print elem elif sys.argv[1] == "--fileinfo": print "Compile Time ", fileinfo.getCompileTime(suspicious_file)
def testName(self): pe = PE.get('chrome.exe') print directory.get_export(pe) print directory.get_import(pe) print directory.get_tls(pe)