Fix indentation in ddos.py

This commit is contained in:
Christian Clauss 2023-07-18 05:33:23 +02:00 committed by GitHub
parent dcbca630fd
commit c03363dde0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,15 +5,18 @@ import subprocess
from core import HackingTool from core import HackingTool
from core import HackingToolsCollection from core import HackingToolsCollection
class ddos(HackingTool): class ddos(HackingTool):
TITLE ="ddos" TITLE = "ddos"
DESCRIPTION = "Best DDoS Attack Script With 36 Plus Methods." \ DESCRIPTION = (
"DDoS attacks\n\b " \ "Best DDoS Attack Script With 36 Plus Methods."
"for SECURITY TESTING PURPOSES ONLY! " "DDoS attacks\n\b "
"for SECURITY TESTING PURPOSES ONLY! "
)
INSTALL_COMMANDS = [ INSTALL_COMMANDS = [
"git clone https://github.com/the-deepnet/ddos.git", "git clone https://github.com/the-deepnet/ddos.git",
"cd ddos;sudo pip3 install -r requirements.txt" "cd ddos;sudo pip3 install -r requirements.txt",
] ]
PROJECT_URL = "https://github.com/the-deepnet/ddos.git" PROJECT_URL = "https://github.com/the-deepnet/ddos.git"
@ -25,14 +28,27 @@ class ddos(HackingTool):
multiple = input(" Enter Multiple >> ") multiple = input(" Enter Multiple >> ")
timer = input(" Enter Timer >> ") timer = input(" Enter Timer >> ")
os.system("cd ddos;") os.system("cd ddos;")
subprocess.run([ subprocess.run(
"sudo", "python3 ddos", method, url, "socks_type5.4.1", threads, proxylist, multiple, timer]) [
"sudo",
"python3 ddos",
method,
url,
"socks_type5.4.1",
threads,
proxylist,
multiple,
timer,
]
)
class SlowLoris(HackingTool): class SlowLoris(HackingTool):
TITLE = "SlowLoris" TITLE = "SlowLoris"
DESCRIPTION = "Slowloris is basically an HTTP Denial of Service attack." \ DESCRIPTION = (
"It send lots of HTTP Request" "Slowloris is basically an HTTP Denial of Service attack."
"It send lots of HTTP Request"
)
INSTALL_COMMANDS = ["sudo pip3 install slowloris"] INSTALL_COMMANDS = ["sudo pip3 install slowloris"]
def run(self): def run(self):
@ -42,12 +58,14 @@ class SlowLoris(HackingTool):
class Asyncrone(HackingTool): class Asyncrone(HackingTool):
TITLE = "Asyncrone | Multifunction SYN Flood DDoS Weapon" TITLE = "Asyncrone | Multifunction SYN Flood DDoS Weapon"
DESCRIPTION = "aSYNcrone is a C language based, mulltifunction SYN Flood " \ DESCRIPTION = (
"DDoS Weapon.\nDisable the destination system by sending a " \ "aSYNcrone is a C language based, mulltifunction SYN Flood "
"SYN packet intensively to the destination." "DDoS Weapon.\nDisable the destination system by sending a "
"SYN packet intensively to the destination."
)
INSTALL_COMMANDS = [ INSTALL_COMMANDS = [
"git clone https://github.com/fatih4842/aSYNcrone.git", "git clone https://github.com/fatih4842/aSYNcrone.git",
"cd aSYNcrone;sudo gcc aSYNcrone.c -o aSYNcrone -lpthread" "cd aSYNcrone;sudo gcc aSYNcrone.c -o aSYNcrone -lpthread",
] ]
PROJECT_URL = "https://github.com/fatihsnsy/aSYNcrone" PROJECT_URL = "https://github.com/fatihsnsy/aSYNcrone"
@ -56,19 +74,22 @@ class Asyncrone(HackingTool):
target_ip = input("Enter Target IP >> ") target_ip = input("Enter Target IP >> ")
target_port = input("Enter Target port >> ") target_port = input("Enter Target port >> ")
os.system("cd aSYNcrone;") os.system("cd aSYNcrone;")
subprocess.run([ subprocess.run(
"sudo", "./aSYNcrone", source_port, target_ip, target_port, 1000]) ["sudo", "./aSYNcrone", source_port, target_ip, target_port, 1000]
)
class UFONet(HackingTool): class UFONet(HackingTool):
TITLE = "UFOnet" TITLE = "UFOnet"
DESCRIPTION = "UFONet - is a free software, P2P and cryptographic " \ DESCRIPTION = (
"-disruptive \n toolkit- that allows to perform DoS and " \ "UFONet - is a free software, P2P and cryptographic "
"DDoS attacks\n\b " \ "-disruptive \n toolkit- that allows to perform DoS and "
"More Usage Visit" "DDoS attacks\n\b "
"More Usage Visit"
)
INSTALL_COMMANDS = [ INSTALL_COMMANDS = [
"sudo git clone https://github.com/epsylon/ufonet.git", "sudo git clone https://github.com/epsylon/ufonet.git",
"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" "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",
] ]
RUN_COMMANDS = ["sudo python3 ufonet --gui"] RUN_COMMANDS = ["sudo python3 ufonet --gui"]
PROJECT_URL = "https://github.com/epsylon/ufonet" PROJECT_URL = "https://github.com/epsylon/ufonet"
@ -76,8 +97,10 @@ class UFONet(HackingTool):
class GoldenEye(HackingTool): class GoldenEye(HackingTool):
TITLE = "GoldenEye" TITLE = "GoldenEye"
DESCRIPTION = "GoldenEye is a python3 app for SECURITY TESTING PURPOSES ONLY!\n" \ DESCRIPTION = (
"GoldenEye is a HTTP DoS Test Tool." "GoldenEye is a python3 app for SECURITY TESTING PURPOSES ONLY!\n"
"GoldenEye is a HTTP DoS Test Tool."
)
INSTALL_COMMANDS = [ INSTALL_COMMANDS = [
"sudo git clone https://github.com/jseidl/GoldenEye.git;" "sudo git clone https://github.com/jseidl/GoldenEye.git;"
"chmod -R 755 GoldenEye" "chmod -R 755 GoldenEye"
@ -86,22 +109,23 @@ class GoldenEye(HackingTool):
def run(self): def run(self):
os.system("cd GoldenEye ;sudo ./goldeneye.py") os.system("cd GoldenEye ;sudo ./goldeneye.py")
print("\033[96m Go to Directory \n " print(
"[*] USAGE: ./goldeneye.py <url> [OPTIONS]") "\033[96m Go to Directory \n " "[*] USAGE: ./goldeneye.py <url> [OPTIONS]"
)
class Saphyra(HackingTool): class Saphyra(HackingTool):
TITLE = "SaphyraDDoS" TITLE = "SaphyraDDoS"
DESCRIPTION = "A complex python code to DDoS any website with a very easy usage.!\n" DESCRIPTION = "A complex python code to DDoS any website with a very easy usage.!\n"
INSTALL_COMMANDS = [ INSTALL_COMMANDS = [
"sudo su", "sudo su",
"git clone https://github.com/anonymous24x7/Saphyra-DDoS.git", "git clone https://github.com/anonymous24x7/Saphyra-DDoS.git",
"cd Saphyra-DDoS", "cd Saphyra-DDoS",
"chmod +x saphyra.py", "chmod +x saphyra.py",
"python saphyra.py" "python saphyra.py",
] ]
PROJECT_URL = "https://github.com/anonymous24x7/Saphyra-DDoS" PROJECT_URL = "https://github.com/anonymous24x7/Saphyra-DDoS"
def run(self): def run(self):
url = input("Enter url>>> ") url = input("Enter url>>> ")
try: try:
@ -109,12 +133,7 @@ class Saphyra(HackingTool):
except: except:
print("Enter a valid url.") print("Enter a valid url.")
class DDOSTools(HackingToolsCollection): class DDOSTools(HackingToolsCollection):
TITLE = "DDOS Attack Tools" TITLE = "DDOS Attack Tools"
TOOLS = [ TOOLS = [SlowLoris(), Asyncrone(), UFONet(), GoldenEye(), Syphra()]
SlowLoris(),
Asyncrone(),
UFONet(),
GoldenEye(),
Syphra()
]