Sfoglia il codice sorgente

Improved structure for QS

Marcel 6 anni fa
parent
commit
f4e4a57b3d
1 ha cambiato i file con 1 aggiunte e 6 eliminazioni
  1. 1 6
      code/CLI.py

+ 1 - 6
code/CLI.py

@@ -165,12 +165,7 @@ class CLI(object):
         # Process attack(s) with given attack params
         if self.args.attack is not None:
             # If attack is present, load attack with params
-            if self.args.inject_empty:
-                # Attack PCAPs will not be merged with base PCAP
-                controller.process_attacks(self.args.attack, inject_empty=True)
-            else:
-                # Attack PCAP will be merged with base PCAP
-                controller.process_attacks(self.args.attack)
+            controller.process_attacks(self.args.attack, self.args.inject_empty)
 
         # Parameter -q without arguments was given -> go into query loop
         if self.args.query == [None]: