Testing and fixing YourThings scripts for negative experiments.
authorrtrimana <rtrimana@uci.edu>
Mon, 16 Dec 2019 21:13:49 +0000 (13:13 -0800)
committerrtrimana <rtrimana@uci.edu>
Mon, 16 Dec 2019 21:13:49 +0000 (13:13 -0800)
Code/Projects/PacketLevelSignatureExtractor/execute_layer2_yourthings_all_detection.sh [changed mode: 0644->0755]
Code/Projects/PacketLevelSignatureExtractor/execute_layer3_yourthings_all_detection.sh

old mode 100644 (file)
new mode 100755 (executable)
index fc0719c..75ef995
@@ -24,12 +24,12 @@ readonly OUTPUT_DIR
 # Then there are subfolders inside 2018/ such as 2018/03/20/
 for SUBFOLDER1 in $YT_TRACES_DIR/*; do
        for SUBFOLDER2 in $SUBFOLDER1/*; do
 # Then there are subfolders inside 2018/ such as 2018/03/20/
 for SUBFOLDER1 in $YT_TRACES_DIR/*; do
        for SUBFOLDER2 in $SUBFOLDER1/*; do
-               for PCAP_FILE in $SUBFOLDER2/*.pcap; do
-                               # skip non pcap files
-                               [ -e "$PCAP_FILE" ] || continue
-                               # make an output sub dir in the base output dir that is the filename minus extension
-                               OUTPUT_SUB_DIR=$(basename "$PCAP_FILE" .pcap)
-                               ./execute_layer2_unb_all_detection.sh $PCAP_FILE $SIGNATURES_BASE_DIR $OUTPUT_DIR/$OUTPUT_SUB_DIR
+               for PCAP_FILE in $SUBFOLDER2/*; do
+            # skip non pcap files
+            [ -e "$PCAP_FILE" ] || continue
+            # make an output sub dir in the base output dir that is the filename minus extension
+            OUTPUT_SUB_DIR=$(basename "$PCAP_FILE" .pcap)
+            ./execute_layer2_unb_all_detection.sh $PCAP_FILE $SIGNATURES_BASE_DIR $OUTPUT_DIR/$OUTPUT_SUB_DIR
                done
        done
 done
\ No newline at end of file
                done
        done
 done
\ No newline at end of file
index 15c5c7f9899ff8931aebef1e0e8d05e64ead4844..ffead24dab679cceeb58866b1808641274ecc6fb 100755 (executable)
@@ -24,12 +24,12 @@ readonly OUTPUT_DIR
 # Then there are subfolders inside 2018/ such as 2018/03/20/
 for SUBFOLDER1 in $YT_TRACES_DIR/*; do
        for SUBFOLDER2 in $SUBFOLDER1/*; do
 # Then there are subfolders inside 2018/ such as 2018/03/20/
 for SUBFOLDER1 in $YT_TRACES_DIR/*; do
        for SUBFOLDER2 in $SUBFOLDER1/*; do
-               for PCAP_FILE in $SUBFOLDER2/*.pcap; do
-                               # skip non pcap files
-                               [ -e "$PCAP_FILE" ] || continue
-                               # make an output sub dir in the base output dir that is the filename minus extension
-                               OUTPUT_SUB_DIR=$(basename "$PCAP_FILE" .pcap)
-                               ./execute_layer3_unb_all_detection.sh $PCAP_FILE $SIGNATURES_BASE_DIR $OUTPUT_DIR/$OUTPUT_SUB_DIR
+               for PCAP_FILE in $SUBFOLDER2/*; do
+                       # skip non pcap files
+                       [ -e "$PCAP_FILE" ] || continue
+                       # make an output sub dir in the base output dir that is the filename minus extension
+                       OUTPUT_SUB_DIR=$(basename "$PCAP_FILE" .pcap)
+                       ./execute_layer3_unb_all_detection.sh $PCAP_FILE $SIGNATURES_BASE_DIR $OUTPUT_DIR/$OUTPUT_SUB_DIR
                done
        done
 done
\ No newline at end of file
                done
        done
 done
\ No newline at end of file