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