def testName(self): pe = core.pefile.PE('chrome.exe') list = suspicious_api.get(pe) print list
elif sys.argv[1] == "--import": for elem in import_function.get(suspicious_file): print """*******""" + elem[0] + """*******""" for el in elem[1]: print el elif sys.argv[1] == "--meta": for elem in meta.get(suspicious_file): print elem elif sys.argv[1] == "--packer": packers = packer.get(suspicious_file) print packers elif sys.argv[1] == "--suspicious_api": list = suspicious_api.get(suspicious_file) print list elif sys.argv[1] == "--sections": for section in sections.get(suspicious_file): print section elif sys.argv[1] == "--strings": print strings.get(sys.argv[2]) elif sys.argv[1] == "--suspicious_sections": print suspicious_sections.get(suspicious_file) elif sys.argv[1] == "--help": print Help.help() elif sys.argv[1] == "--scan": virusto = analyzePattern.analyzeInstance() virusto.configuration(sys.argv[2])