-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (21 loc) · 682 Bytes
/
Copy pathmain.py
File metadata and controls
28 lines (21 loc) · 682 Bytes
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
28
import time
import random
import requests
url = "https://toplessbot.com/ref/UQ8T8W3L"
# Generate fake IPs
fake_ips = [f"192.168.{i}.{j}" for i in range(1, 255) for j in range(1, 255)]
headers_base = {
"User-Agent": "Mozilla/5.0",
"Connection": "close"
}
while True:
fake_ip = random.choice(fake_ips)
headers = headers_base.copy()
headers["X-Forwarded-For"] = fake_ip
headers["Client-IP"] = fake_ip
try:
r = requests.get(url, headers=headers, timeout=5)
print(fake_ip, "→", r.status_code)
except Exception as e:
print(fake_ip, "→ Error:", e)
time.sleep(0.5) # request every 0.5 sec