Przeglądaj źródła

fixed naming when injecting into empty pcap

Marcel 6 lat temu
rodzic
commit
aea43bdd79
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      code/ID2TLib/Controller.py

+ 1 - 1
code/ID2TLib/Controller.py

@@ -92,7 +92,7 @@ class Controller:
             print("Copying single attack pcap to location of base pcap...", end=" ")
             sys.stdout.flush()  # force python to print text immediately
 
-            timestamp = time.strftime("%Y%m%d") + '-' + time.strftime("%X").replace(':', '')
+            timestamp = '_' + time.strftime("%Y%m%d") + '-' + time.strftime("%X").replace(':', '')
             self.pcap_dest_path = self.pcap_src_path.replace(".pcap", timestamp + '.pcap')
             shutil.copy(attacks_pcap_path, self.pcap_dest_path)