Use timestamp in filename

This commit is contained in:
tux 2025-09-12 11:35:31 +02:00
parent 1a8a2e35c1
commit e00159cb35

4
mon
View File

@ -92,8 +92,10 @@ else
source <(grep -E '^[[:space:]]*channel[[:space:]]*=' /etc/hostapd-wpe/hostapd-wpe.conf) source <(grep -E '^[[:space:]]*channel[[:space:]]*=' /etc/hostapd-wpe/hostapd-wpe.conf)
fi fi
TIMESTAMP="$(date '+%Y-%m-%d_%H-%M-%S')"
# Start monitoring # Start monitoring
if ! airodump-ng --channel $channel -w wpa "$iface"; then if ! airodump-ng --channel $channel -w wpa-${TIMESTAMP} "$iface"; then
echo "[!] Failed to start airodump-ng. Exiting." echo "[!] Failed to start airodump-ng. Exiting."
exit 1 exit 1
fi fi