-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheaph_flush
More file actions
34 lines (27 loc) · 729 Bytes
/
eaph_flush
File metadata and controls
34 lines (27 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env sh
#
# Launcher/wrapper script around Eaphammer,
# it flushes logs immediately to a file
# (Eaphammer itself, as of version 1.13.5, saves logs only on exit, and not at all in case of an error)
#
# author: eda-abec
# 2022
#
# the logs are named by the SSID and placed in the Eaphammer directory
#
# usage:
# sudo eaph_flush.sh SSID interface
# - SSID
# - interface: the interface to run on, optional, defaults to wlan0
# change this accordingly
path="/root/eaphammer/"
ssid=$1
logfile=eaph_$ssid.log
echo "Writing to" $logfile
iface=$2
if [ -z $iface ]; then
iface=wlan0
fi
echo "Running on interface" $iface
cd $path
sudo python eaphammer --creds -i $iface -e $ssid --auth wpa-eap | tee -a $logfile