|
@@ -108,6 +108,17 @@ class Controller:
|
|
|
|
|
|
os.rename(self.pcap_dest_path, result_path)
|
|
|
self.pcap_dest_path = result_path
|
|
|
+ created_files = [self.pcap_dest_path]
|
|
|
+
|
|
|
+ # process/move other created files
|
|
|
+ pcap_root = os.path.splitext(self.pcap_dest_path)[0]
|
|
|
+ for k, v in Util.MISC_OUT_FILES:
|
|
|
+ if v is None:
|
|
|
+ created_files.append(k)
|
|
|
+ else:
|
|
|
+ outpath = pcap_root + "_" + k
|
|
|
+ os.rename(v, outpath)
|
|
|
+ created_files.append(outpath)
|
|
|
|
|
|
print("done.")
|
|
|
|
|
@@ -119,9 +130,12 @@ class Controller:
|
|
|
|
|
|
# write label file with attacks
|
|
|
self.label_manager.write_label_file(self.pcap_dest_path)
|
|
|
+ created_files.insert(1, self.label_manager.label_file_path)
|
|
|
|
|
|
# print status message
|
|
|
- print('\nOutput files created: \n', self.pcap_dest_path, '\n', self.label_manager.label_file_path)
|
|
|
+ print('\nOutput files created:')
|
|
|
+ for filepath in created_files:
|
|
|
+ print(filepath)
|
|
|
|
|
|
# print summary statistics
|
|
|
if not self.non_verbose:
|