diff --git a/runtest.sh b/runtest.sh index 36ab2d3..3af6ef4 100755 --- a/runtest.sh +++ b/runtest.sh @@ -111,11 +111,14 @@ if [ -z "$KISMET_LOG" ] || [ ! -f "$KISMET_LOG" ]; then exit 1 fi +echo "Stopping kismet..." + +sudo systemctl stop kismet + python3 $SCRIPT_DIRECTORY/kismet_enrich_from_pcap.py --csv $TEST_FILE --pcapng "$KISMET_LOG" --output "$ENRICHED_FILE" # Final email with attachment echo "The test with UID ${BOOT_ID} is complete. Please collect the probe. Data is attached." | \ mutt -s "Test ${BOOT_ID} Complete" -a "$ENRICHED_FILE" -- "$RECIPIENT" -sudo systemctl stop kismet sudo kill $SUDO_KEEPALIVE_PID