mirror of
https://github.com/adulau/MalwareClassifier.git
synced 2025-01-14 12:03:29 +00:00
Workshop - third step
Import tshark parsing headers in Redis
This commit is contained in:
parent
d3b76fd9bb
commit
a7f73154b0
1 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,11 @@ r = redis.StrictRedis(host='localhost', port=6379, db=0)
|
|||
if args.f is not None:
|
||||
md5 = args.f[0].split(".")[0]
|
||||
r.sadd('processed', md5)
|
||||
lnumber = 0
|
||||
for line in sys.stdin:
|
||||
print (line.split(",")[0])
|
||||
if lnumber == 0:
|
||||
for field in line.rstrip().split(","):
|
||||
r.sadd('type', field)
|
||||
lnumber = lnumber + 1
|
||||
else:
|
||||
argParser.print_help()
|
||||
|
|
Loading…
Reference in a new issue