-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathd-proxy.py
More file actions
249 lines (242 loc) · 10.8 KB
/
Copy pathd-proxy.py
File metadata and controls
249 lines (242 loc) · 10.8 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
# CHANNEL : @Esfelurm | Github.com/esfelurm
import os
from time import sleep
try:import requests
except:os.system("pip install requests")
try:os.system("cls")
except:os.system("clear")
rd, gn, lgn, yw, lrd, be, pe = '\033[00;31m', '\033[00;32m', '\033[01;32m', '\033[01;33m', '\033[01;31m', '\033[00;34m', '\033[01;35m'
cn = '\033[00;36m'
def APIS_PROXY(PROX,Name_File,Save):
if PROX == "1":
f = open(Name_File,'wb')
SOCKS4 = [
"https://api.proxyscrape.com/v2/?request=getproxies&protocol=socks4",
"https://openproxylist.xyz/socks4.txt",
"https://proxyspace.pro/socks4.txt",
"https://raw.githubusercontent.com/B4RC0DE-TM/proxy-list/main/SOCKS4.txt",
"https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-socks4.txt",
"https://raw.githubusercontent.com/mmpx12/proxy-list/master/socks4.txt",
"https://raw.githubusercontent.com/roosterkid/openproxylist/main/SOCKS4_RAW.txt",
"https://raw.githubusercontent.com/saschazesiger/Free-Proxies/master/proxies/socks4.txt",
"https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/socks4.txt",
"https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/socks4.txt",
"https://www.proxy-list.download/api/v1/get?type=socks4",
"https://www.proxyscan.io/download?type=socks4",
"https://api.proxyscrape.com/?request=displayproxies&proxytype=socks4&country=all",
"https://api.openproxylist.xyz/socks4.txt",
]
for api in SOCKS4:
try:
r = requests.get(api,timeout=5)
if Save == "y" or Save == "Y":
for Line in r.text.split('\n'):
sleep(0.5)
print (f"{lrd}[{lgn}+{lrd}] {lgn}SOCKS4 : {gn}{Line}\n\n")
else:f.write(r.content)
except:
pass
f.close()
try:
r = requests.get("https://www.socks-proxy.net/",timeout=5)
Tag_H = str(r.content)
Tag_H = Tag_H.split("<tbody>")
Tag_H = Tag_H[1].split("</tbody>")
Tag_H = Tag_H[0].split("<tr><td>")
proxies = ""
for proxy in Tag_H:
proxy = proxy.split("</td><td>")
try:
proxies=proxies + proxy[0] + ":" + proxy[1] + "\n"
except:
pass
fd = open(Name_File,"a")
fd.write(proxies)
fd.close()
except:
pass
if PROX == "2":
f = open(Name_File,'wb')
SOCKS5 = [
"https://api.proxyscrape.com/v2/?request=getproxies&protocol=socks5&timeout=10000&country=all&simplified=true",
"https://www.proxy-list.download/api/v1/get?type=socks5",
"https://www.proxyscan.io/download?type=socks5",
"https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/socks5.txt",
"https://raw.githubusercontent.com/hookzof/socks5_list/master/proxy.txt",
"https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/socks5.txt",
"https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-socks5.txt",
"https://api.openproxylist.xyz/socks5.txt",
"https://api.proxyscrape.com/v2/?request=getproxies&protocol=socks5",
"https://openproxylist.xyz/socks5.txt",
"https://proxyspace.pro/socks5.txt",
"https://raw.githubusercontent.com/B4RC0DE-TM/proxy-list/main/SOCKS5.txt",
"https://raw.githubusercontent.com/manuGMG/proxy-365/main/SOCKS5.txt",
"https://raw.githubusercontent.com/mmpx12/proxy-list/master/socks5.txt",
"https://raw.githubusercontent.com/roosterkid/openproxylist/main/SOCKS5_RAW.txt",
"https://raw.githubusercontent.com/saschazesiger/Free-Proxies/master/proxies/socks5.txt",
]
for api in SOCKS5:
try:
r = requests.get(api,timeout=5)
if Save == "y" or Save == "Y":
for Line in r.text.split('\n'):
sleep(0.5)
print (f"{lrd}[{lgn}+{lrd}] {lgn}SOCKS5 : {gn}{Line}\n\n")
else:f.write(r.content)
except:
pass
f.close()
if PROX == "3":
f = open(Name_File,'wb')
HTTP = [
"https://api.proxyscrape.com/?request=displayproxies&proxytype=http",
"https://www.proxy-list.download/api/v1/get?type=http",
"https://www.proxyscan.io/download?type=http",
"https://raw.githubusercontent.com/TheSpeedX/SOCKS-List/master/http.txt",
"https://api.openproxylist.xyz/http.txt",
"https://raw.githubusercontent.com/shiftytr/proxy-list/master/proxy.txt",
"http://alexa.lr2b.com/proxylist.txt",
"https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-http.txt",
"https://raw.githubusercontent.com/clarketm/proxy-list/master/proxy-list-raw.txt",
"https://raw.githubusercontent.com/sunny9577/proxy-scraper/master/proxies.txt",
"https://raw.githubusercontent.com/opsxcq/proxy-list/master/list.txt",
"https://proxy-spider.com/api/proxies.example.txt",
"https://multiproxy.org/txt_all/proxy.txt",
"https://raw.githubusercontent.com/roosterkid/openproxylist/main/HTTPS_RAW.txt",
"https://raw.githubusercontent.com/UserR3X/proxy-list/main/online/http.txt",
"https://raw.githubusercontent.com/UserR3X/proxy-list/main/online/https.txt",
"https://api.proxyscrape.com/v2/?request=getproxies&protocol=http",
"https://openproxylist.xyz/http.txt",
"https://proxyspace.pro/http.txt",
"https://proxyspace.pro/https.txt",
"https://raw.githubusercontent.com/almroot/proxylist/master/list.txt",
"https://raw.githubusercontent.com/aslisk/proxyhttps/main/https.txt",
"https://raw.githubusercontent.com/B4RC0DE-TM/proxy-list/main/HTTP.txt",
"https://raw.githubusercontent.com/hendrikbgr/Free-Proxy-Repo/master/proxy_list.txt",
"https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-https.txt",
"https://raw.githubusercontent.com/mertguvencli/http-proxy-list/main/proxy-list/data.txt",
"https://raw.githubusercontent.com/mmpx12/proxy-list/master/http.txt",
"https://raw.githubusercontent.com/mmpx12/proxy-list/master/https.txt",
"https://raw.githubusercontent.com/proxy4parsing/proxy-list/main/http.txt",
"https://raw.githubusercontent.com/RX4096/proxy-list/main/online/http.txt",
"https://raw.githubusercontent.com/RX4096/proxy-list/main/online/https.txt",
"https://raw.githubusercontent.com/saisuiu/uiu/main/free.txt",
"https://raw.githubusercontent.com/saschazesiger/Free-Proxies/master/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/TheSpeedX/PROXY-List/master/http.txt",
"https://rootjazz.com/proxies/proxies.txt",
"https://sheesh.rip/http.txt",
"https://www.proxy-list.download/api/v1/get?type=https",
]
for api in HTTP:
try:
r = requests.get(api,timeout=5)
if Save == "y" or Save == "Y":
for Line in r.text.split('\n'):
sleep(0.5)
print (f"{lrd}[{lgn}+{lrd}] {lgn}HTTP : {gn}{Line}\n\n")
else:f.write(r.content)
except:
pass
f.close()
if PROX == "4":
f = open(Name_File,'wb')
HTTPS = ["https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/https.txt",
"https://raw.githubusercontent.com/jetkai/proxy-list/main/online-proxies/txt/proxies-https.txt",
]
for api in HTTPS:
try:
r = requests.get(api,timeout=5)
if Save == "y" or Save == "Y":
for Line in r.text.split('\n'):
sleep(0.5)
print (f"{lrd}[{lgn}+{lrd}] {lgn}HTTPS : {gn}{Line}\n\n")
else:f.write(r.content)
except:
pass
f.close()
if PROX == "5":
f = open(Name_File,'wb')
Config = [
"https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Sub1.txt",
"https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Sub2.txt",
"https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Sub3.txt",
"https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Sub4.txt",
"https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Sub5.txt",
"https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Sub6.txt",
"https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Sub7.txt",
"https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Sub8.txt",
"https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Splitted-By-Protocol/vmess.txt"
]
for api in Config:
try:
r = requests.get(api,timeout=5)
if Save == "y" or Save == "Y":
for Line in r.text.split('\n'):
sleep(0.5)
print (f"{lrd}[{lgn}+{lrd}] {lgn}Config : {gn}{Line}\n\n")
else:f.write(r.content)
except:
pass
f.close()
if PROX == "6":
f = open(Name_File,'wb')
ShadowSocks = ["https://raw.githubusercontent.com/Bardiafa/Free-V2ray-Config/main/Splitted-By-Protocol/vless.txt","https://raw.githubusercontent.com/freefq/free/master/v2","https://raw.githubusercontent.com/Pawdroid/Free-servers/main/sub","https://raw.githubusercontent.com/tbbatbb/Proxy/master/dist/v2ray.config.txt"]
for api in ShadowSocks:
try:
r = requests.get(api,timeout=5)
if Save == "y" or Save == "Y":
for Line in r.text.split('\n'):
sleep(0.5)
print (f"{lrd}[{lgn}+{lrd}] {lgn}Vless : {gn}{Line}\n\n")
else:f.write(r.content)
except:
pass
f.close()
if PROX == "7":
f = open(Name_File,'wb')
Vless = ["https://raw.githubusercontent.com/awesome-vpn/awesome-vpn/master/all"]
for api in Vless:
try:
r = requests.get(api,timeout=5)
if Save == "y" or Save == "Y":
for Line in r.text.split('\n'):
sleep(0.5)
print (f"{lrd}[{lgn}+{lrd}] {lgn}Trojan/SS : {gn}{Line}\n\n")
else:f.write(r.content)
except:
pass
f.close()
if PROX == "8":
f = open(Name_File,'wb')
Vless = ["https://raw.githubusercontent.com/mahdibland/ShadowsocksAggregator/master/sub/sub_merge.txt"]
for api in Vless:
try:
r = requests.get(api,timeout=5)
if Save == "y" or Save == "Y":
for Line in r.text.split('\n'):
sleep(0.5)
print (f"{lrd}[{lgn}+{lrd}] {lgn}Random : {gn}{Line}\n\n")
else:f.write(r.content)
except:
pass
f.close()
print("\n\nHave already downloaded proxies list as "+Name_File)
print (f"\n\n {yw}thank you{lrd} | {gn}channel Telegram :{lgn} @Esfelurm {lrd}| ")
print (f"""
{yw}Written by {lrd}: {lgn}Hydra {yw}&& {lgn}Esfelurm {yw}| {gn}Version{lrd} : {lgn}2.0.1\n\n
{lrd} ____ {lgn} ____
{lrd} / __ \ {lgn}/ __ \_________ _ ____ __
{lrd} / / / /{rd}_____{lgn}/ /_/ / ___/ __ \| |/_/ / / /
{lrd} / /_/ /{rd}_____{lgn}/ ____/ / / /_/ /> </ /_/ /{lgn}
{lrd}/_____/{lgn} /_/ /_/ \____/_/|_|\__, /
/____/
""")
print (f"""
{rd}| {gn}Socks4 {lrd}[{lgn}1{lrd}] {yw}-- {gn}Socks5 {lrd}[{lgn}2{lrd}] {yw}-- {gn}Http {lrd}[{lgn}3{lrd}]{yw} -- {gn}Https {lrd}[{lgn}4{lrd}] {yw}{rd}|
\n{rd} | {gn}Config {lrd}[{lgn}5{lrd}] {yw}-- {gn}Vless {lrd}[{lgn}6{lrd}] {yw}-- {gn}TrSe {lrd}[{lgn}7{lrd}] {yw}-- {gn}RDM {lrd}[{lgn}8{lrd}] {rd}|""")
proxy = input(f"\n{lrd}[{lgn}?{lrd}] {yw}Enter protocol : {cn}")
Name_File = input(f"\n{lrd}[{lgn}+{lrd}] {cn}Please enter the path and name of the file you want the proxies to be saved in : ")
Save = input(f"\n{lrd}[{lgn}+{lrd}] {cn}Do you want to see the config/proxies in the terminal? [Y/N]")
APIS_PROXY(proxy,Name_File,Save)