-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsmokescreen.py
74 lines (57 loc) · 2.11 KB
/
smokescreen.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import requests
import time
import threading
from itertools import cycle
from colorama import init, Fore, Back, Style
from faker import Faker
init()
print(Fore.BLUE, Style.BRIGHT, Back.BLACK + """
__ _ ___ __ _ __ ___ ___
(_ ` )\/) / ) )_/ )_ (_ ` / ` )_) )_ )_ )\ )
- .__) ( ( (_/ / ) (__ .__) (_. / \ (__ (__ ( ( -
""")
print(Fore.WHITE)
targ = input("URL: ")
time.sleep(1)
print("\n[NOTE]: It may take some time to set up proxy connections ... ")
def make_request(proxy_url):
try:
fake = Faker()
headers = {'User-Agent': fake.user_agent()}
proxy_url = "http://" + proxy_url
list_proxy = [proxy_url]
proxy_cycle = cycle(list_proxy)
for i in range(1):
proxy = next(proxy_cycle)
proxies = {"http": proxy, "https": proxy}
try:
r = requests.get(url=targ, proxies=proxies, headers=headers).text
print(" ", proxy, " ===> [REQUESTED]")
except Exception as E:
pass
except Exception as E:
print(E)
pass
proxy_urls = [
'https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt',
'https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-http.txt',
'https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/http.txt',
'https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/https.txt',
'https://raw.githubusercontent.com/clarketm/proxy-list/master/proxy-list-raw.txt',
'https://raw.githubusercontent.com/prxchk/proxy-list/main/http.txt',
'https://raw.githubusercontent.com/zevtyardt/proxy-list/main/http.txt' #configure proxy urls, must be in ip:port format
]
threads = []
for proxy_url in proxy_urls:
try:
thread = threading.Thread(target=make_request, args=(proxy_url,))
threads.append(thread)
thread.start()
except Exception as E:
print(E)
pass
for thread in threads:
try:
thread.join()
except:
pass