-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3_airodump_autoscript.sh
82 lines (46 loc) · 1.3 KB
/
3_airodump_autoscript.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
#
#general script to start and get info about a certain
#access point
#
echo "What interface do you want to capture on?: "
read CAPINTERFACE
echo "Please tell me the bssid (MAC of AP):"
read APBSSID
echo "Please tell me which channel that AP is on: "
read APCHANNEL
echo "What is the name prefix you'd like to"
echo "assign to the write file?: "
read NAMEPREFIX
echo "Do you want to capture only IVS's?: "
echo "(Y or N)"
read IVSANSWER
#
#beginning of ivs capture mode
#
if [ "$IVSANSWER" = "Y" ] || [ "$IVSANSWER" = "y" ]; then
echo "Capturing only IVS's on $CAPINTERFACE"
echo "Targeting $APBSSID on channel: $APCHANNEL"
sleep 5
echo "Press CTRL+C to end capture"
sleep 10
echo "Capture commencing..."
sleep 3
mkdir /usr/airodump_cap/$APBSSID
airodump-ng --ivs -w /usr/airodump_cap/$APBSSID/$NAMEPREFIX --bssid $APBSSID --channel $APCHANNEL $CAPINTERFACE
else
echo "Capturing all traffic on $CAPINTERFACE"
echo "Targeting $APBSSID on channel: $APCHANNEL"
sleep 5
echo "Press CTRL+C to end capture"
sleep 7
echo "Capture commencing..."
sleep 3
mkdir /usr/airodump_cap/$APBSSID
airodump-ng -w /usr/airodump_cap/$APBSSID/$NAMEPREFIX --bssid $APBSSID --channel $APCHANNEL $CAPINTERFACE
fi
#
#end of ivs capture mode
#
echo "Files have been saved under /usr/airodump_cap/"
sleep 10