瀏覽代碼

fixed naming when injecting into empty pcap

Marcel 6 年之前
父節點
當前提交
aea43bdd79
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)