mirror of
https://github.com/adulau/MalwareClassifier.git
synced 2024-12-22 08:46:04 +00:00
Workshop - first step
This commit is contained in:
commit
1cb5fe46d3
1 changed files with 13 additions and 0 deletions
13
bin/import.py
Normal file
13
bin/import.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import argparse
|
||||||
|
import sys
|
||||||
|
|
||||||
|
argParser = argparse.ArgumentParser(description='Malware classifier')
|
||||||
|
argParser.add_argument('-f', action='append', help='Filename')
|
||||||
|
args = argParser.parse_args()
|
||||||
|
|
||||||
|
if args.f is not None:
|
||||||
|
filename = args.f
|
||||||
|
for line in sys.stdin:
|
||||||
|
print (line.split(",")[0])
|
||||||
|
else:
|
||||||
|
argParser.print_help()
|
Loading…
Reference in a new issue