Seems like doing the pcap dump before stopping Kismet is a Bad.

This commit is contained in:
Yaro Kasear 2025-04-11 09:45:35 -05:00
parent 1dc679a04d
commit 757fe18026

View file

@ -111,11 +111,14 @@ if [ -z "$KISMET_LOG" ] || [ ! -f "$KISMET_LOG" ]; then
exit 1 exit 1
fi 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" python3 $SCRIPT_DIRECTORY/kismet_enrich_from_pcap.py --csv $TEST_FILE --pcapng "$KISMET_LOG" --output "$ENRICHED_FILE"
# Final email with attachment # Final email with attachment
echo "The test with UID ${BOOT_ID} is complete. Please collect the probe. Data is attached." | \ 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" mutt -s "Test ${BOOT_ID} Complete" -a "$ENRICHED_FILE" -- "$RECIPIENT"
sudo systemctl stop kismet
sudo kill $SUDO_KEEPALIVE_PID sudo kill $SUDO_KEEPALIVE_PID