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
|
global OPTS, ARGS
|
||||||
|
|
||||||
|
l = []
|
||||||
|
nl = []
|
||||||
|
|
||||||
|
"""
|
||||||
|
Check for any given filenames
|
||||||
|
"""
|
||||||
|
if len(ARGS) == 0:
|
||||||
|
# No filenames given
|
||||||
testpath = "Protocols/MultiProtocolAttacks/"
|
testpath = "Protocols/MultiProtocolAttacks/"
|
||||||
fl = os.listdir(testpath)
|
fl = os.listdir(testpath)
|
||||||
nl = []
|
|
||||||
for fn in fl:
|
for fn in fl:
|
||||||
if fn.endswith(".spdl"):
|
if fn.endswith(".spdl"):
|
||||||
nl.append(fn)
|
nl.append(fn)
|
||||||
|
|
||||||
# Report list
|
|
||||||
print "Performing multi-protocol analysis for the following protocols:", nl
|
|
||||||
|
|
||||||
# Prepend again the path
|
# Prepend again the path
|
||||||
l = []
|
l = []
|
||||||
for fn in nl:
|
for fn in nl:
|
||||||
l.append(testpath+fn)
|
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)
|
fullScan(l)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user