Let's start using pcaps.
This commit is contained in:
parent
1ed992e1d4
commit
ec2bbc43a4
2 changed files with 31 additions and 3 deletions
10
runtest.sh
10
runtest.sh
|
@ -20,8 +20,12 @@ sudo -v
|
|||
while true; do sudo -n true; sleep 60; done 2>/dev/null &
|
||||
SUDO_KEEPALIVE_PID=$!
|
||||
|
||||
echo "Starting kismet..."
|
||||
|
||||
sudo systemctl start kismet
|
||||
|
||||
echo "Saturating the capture..."
|
||||
|
||||
sleep $LEAD_TIME
|
||||
|
||||
# Function to get current TX failed count
|
||||
|
@ -100,14 +104,14 @@ 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-)
|
||||
KISMET_LOG=$(find ~/kismet_logs -type f -name "*.pcapng" -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."
|
||||
echo "[!] Packet capture not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python3 $SCRIPT_DIRECTORY/kismet_enrich_csv.py --csv $TEST_FILE --kismet "$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
|
||||
echo "The test with UID ${BOOT_ID} is complete. Please collect the probe. Data is attached." | \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue