From 757fe18026d17e6e69e1c8215b0c683263d07b17 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Fri, 11 Apr 2025 09:45:35 -0500 Subject: [PATCH] Seems like doing the pcap dump before stopping Kismet is a Bad. --- runtest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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