|
@@ -70,10 +70,12 @@ class CLI(object):
|
|
nargs='+', default=[])
|
|
nargs='+', default=[])
|
|
parser.add_argument('-T', '--time', help='measures packet generation time', action='store_true', default=False)
|
|
parser.add_argument('-T', '--time', help='measures packet generation time', action='store_true', default=False)
|
|
parser.add_argument('-V', '--non-verbose', help='reduces terminal clutter', action='store_true', default=False)
|
|
parser.add_argument('-V', '--non-verbose', help='reduces terminal clutter', action='store_true', default=False)
|
|
|
|
+ parser.add_argument('-o', '--output', metavar="PCAP_FILE", help='path to the output pcap file')
|
|
|
|
|
|
# Attack arguments
|
|
# Attack arguments
|
|
parser.add_argument('-a', '--attack', metavar="ATTACK", action='append',
|
|
parser.add_argument('-a', '--attack', metavar="ATTACK", action='append',
|
|
help='injects ATTACK into a PCAP file.', nargs='+')
|
|
help='injects ATTACK into a PCAP file.', nargs='+')
|
|
|
|
+
|
|
# Parse arguments
|
|
# Parse arguments
|
|
self.args = parser.parse_args(args)
|
|
self.args = parser.parse_args(args)
|
|
|
|
|
|
@@ -140,7 +142,7 @@ class CLI(object):
|
|
Evaluates given queries.
|
|
Evaluates given queries.
|
|
"""
|
|
"""
|
|
# Create Core Controller
|
|
# Create Core Controller
|
|
- controller = Controller(self.args.input, self.args.extraTests, self.args.non_verbose)
|
|
|
|
|
|
+ controller = Controller(self.args.input, self.args.output, self.args.extraTests, self.args.non_verbose)
|
|
|
|
|
|
# Load PCAP statistics
|
|
# Load PCAP statistics
|
|
controller.load_pcap_statistics(self.args.export, self.args.recalculate, self.args.statistics)
|
|
controller.load_pcap_statistics(self.args.export, self.args.recalculate, self.args.statistics)
|