-
Notifications
You must be signed in to change notification settings - Fork 5
/
start.sh
executable file
·67 lines (60 loc) · 2.76 KB
/
start.sh
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
#!/bin/sh
BDIR=$(pwd)
trap _exit INT QUIT TERM
_exit() {
printf '\033[0;31;31m%b\033[0m' "\nThe script has been terminated. Cleaning up temp files...\n"
rm -f temp_*.txt
cd $BDIR
exit
}
del () {
if [ -d "$1" ]; then
rm -rf $1
elif [ -f "$1" ]; then
rm -f $1
fi
}
proxy () {
del temp_$1.txt
curl -o temp_$1.txt $2
sed -i '/^\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}:[0-9]\{1,5\}$/!d' temp_$1.txt
#awk '!seen[$0]++' temp_$1.txt > temp_$1.txt
cat temp_$1.txt >> $1.txt
sed -i 's/^/'$1':\/\/&/g' temp_$1.txt
cat temp_$1.txt >> $1_with_protocol.txt
cat temp_$1.txt >> all.txt
del temp_$1.txt
}
del file
mkdir file
cd file
# http
proxy "http" "https://fastly.jsdelivr.net/gh/jetkai/proxy-list@main/online-proxies/txt/proxies-http.txt"
proxy "http" "https://www.proxy-list.download/api/v1/get?type=http"
proxy "http" "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt"
proxy "http" "https://cdn.jsdelivr.net/gh/monosans/proxy-list@main/proxies/http.txt"
# https
proxy "https" "https://fastly.jsdelivr.net/gh/jetkai/proxy-list@main/online-proxies/txt/proxies-https.txt"
proxy "https" "https://fastly.jsdelivr.net/gh/roosterkid/openproxylist@main/HTTPS_RAW.txt"
proxy "https" "https://www.proxy-list.download/api/v1/get?type=https"
#socks4
proxy "socks4" "https://fastly.jsdelivr.net/gh/jetkai/proxy-list@main/online-proxies/txt/proxies-socks4.txt"
proxy "socks4" "https://fastly.jsdelivr.net/gh/TheSpeedX/PROXY-List@master/socks4.txt"
proxy "socks4" "https://fastly.jsdelivr.net/gh/roosterkid/openproxylist@main/SOCKS4_RAW.txt"
proxy "socks4" "https://www.proxy-list.download/api/v1/get?type=socks4"
proxy "socks4" "https://cdn.jsdelivr.net/gh/monosans/proxy-list@main/proxies/socks4.txt"
#socks5
proxy "socks5" "https://fastly.jsdelivr.net/gh/jetkai/proxy-list@main/online-proxies/txt/proxies-socks5.txt"
proxy "socks5" "https://fastly.jsdelivr.net/gh/hookzof/socks5_list@master/proxy.txt"
proxy "socks5" "https://fastly.jsdelivr.net/gh/TheSpeedX/PROXY-List@master/socks5.txt"
proxy "socks5" "https://fastly.jsdelivr.net/gh/roosterkid/openproxylist@main/SOCKS5_RAW.txt"
proxy "socks5" "https://www.proxy-list.download/api/v1/get?type=socks5"
proxy "socks5" "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/socks5.txt"
proxy "socks5" "https://api.proxyscrape.com/v2/?request=getproxies&protocol=socks5&timeout=10000&country=all&simplified=true"
proxy "socks5" "https://cdn.jsdelivr.net/gh/monosans/proxy-list@main/proxies/socks5.txt"
proxy "socks5" "https://cdn.jsdelivr.net/gh/clarketm/proxy-list@master/proxy-list-raw.txt"
proxy "socks5" "https://cdn.jsdelivr.net/gh/manuGMG/proxy-365@main/SOCKS5.txt"
proxy "socks5" "https://caliph.my.id/proxy/socks5.txt"
proxy "socks5" "https://cdn.jsdelivr.net/gh/hookzof/socks5_list@master/proxy.txt"
cd $BDIR
printf '\033[0;31;32m%b\033[0m' "\nDone!\n"