Actually open the Kismet log, maybe?

This commit is contained in:
Yaro Kasear 2025-04-10 10:28:59 -05:00
parent 8b0e83ca86
commit 0a294f86b9

View file

@ -89,6 +89,13 @@ done
echo "Enriching the data..."
KISMET_LOG=$(find ~/kismet_logs -type f -name "*.kismet" -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2-)
if [ -z "$KISMET_LOG" ] || [ ! -f "$KISMET_LOG" ]; then
echo "[!] Kismet log file not found."
exit 1
fi
python3 $SCRIPT_DIRECTORY/kismet_enrich_csv.py --csv $TEST_FILE --kismet "$KISMET_LOG" --output "$ENRICHED_FILE"
# Final email with attachment