Browse Source

fixed naming when injecting into empty pcap

Marcel 6 years ago
parent
commit
aea43bdd79
1 changed files with 1 additions and 1 deletions
  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=" ")
             print("Copying single attack pcap to location of base pcap...", end=" ")
             sys.stdout.flush()  # force python to print text immediately
             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')
             self.pcap_dest_path = self.pcap_src_path.replace(".pcap", timestamp + '.pcap')
             shutil.copy(attacks_pcap_path, self.pcap_dest_path)
             shutil.copy(attacks_pcap_path, self.pcap_dest_path)