Changed search display, added Carberp & Zemra

This commit is contained in:
Sheksa
2015-01-07 13:44:28 +02:00
parent 4f133446c7
commit 81e6e789f4
15 changed files with 1493 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
from imports import globals
from imports import db_handler
from sys import exit
from imports.prettytable import PrettyTable
class MuchSearch(object):
@@ -56,8 +56,12 @@ class MuchSearch(object):
return "and".join(qlist)
def print_payloads(self, m, fields=["ID", "Type", "Language", "Architecture", "Platform", "Name"]):
print '\n' + ''.join("{0}\t".format(x) for x in fields)
print "-" * 12 * len(fields)
for col in m:
print ''.join("{0:<11}".format(x) for x in col)
table = PrettyTable(fields)
table.align["ID"] = "l"
table.align["Name"] = "l"
for malware in m:
table.add_row(malware)
print table
print "\n"

1475
imports/prettytable.py Normal file

File diff suppressed because it is too large Load Diff