Re-allowing positional arguments for test-mpa.py, i.e., command line specification of input files.
This commit is contained in:
parent
af25cfc9a0
commit
04787e5516
@ -795,20 +795,31 @@ def bigTest():
|
||||
|
||||
global OPTS, ARGS
|
||||
|
||||
l = []
|
||||
nl = []
|
||||
|
||||
"""
|
||||
Check for any given filenames
|
||||
"""
|
||||
if len(ARGS) == 0:
|
||||
# No filenames given
|
||||
testpath = "Protocols/MultiProtocolAttacks/"
|
||||
fl = os.listdir(testpath)
|
||||
nl = []
|
||||
for fn in fl:
|
||||
if fn.endswith(".spdl"):
|
||||
nl.append(fn)
|
||||
|
||||
# Report list
|
||||
print "Performing multi-protocol analysis for the following protocols:", nl
|
||||
|
||||
# Prepend again the path
|
||||
l = []
|
||||
for fn in nl:
|
||||
l.append(testpath+fn)
|
||||
else:
|
||||
for fn in ARGS:
|
||||
l.append(fn)
|
||||
nl = l
|
||||
|
||||
# Report list
|
||||
print "Performing multi-protocol analysis for the following protocols:", nl
|
||||
|
||||
fullScan(l)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user