-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.sh
More file actions
executable file
·43 lines (35 loc) · 1.5 KB
/
script.sh
File metadata and controls
executable file
·43 lines (35 loc) · 1.5 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
# Collect and filter proxy lists & save result
# 1. Copy required files from ../vpn-configs-for-russia
# 2. from each file remove the following lines with these substrings:
# - security=none
# - Russia
# 3. Destination: WHITE_LIST_PROXY_COLLECTION.txt
# Update the source locally
echo "Checking updates"
cd ../vpn-configs-for-russia/
git pull
# Copy required files
cd -
mkdir -p input/
cp ../vpn-configs-for-russia/WHITE-CIDR-RU-checked.txt input/
cp ../vpn-configs-for-russia/WHITE-SNI-RU-all.txt input/
cp ../vpn-configs-for-russia/Vless-Reality-White-Lists-Rus-Mobile.txt input/
cp ../vpn-configs-for-russia/Vless-Reality-White-Lists-Rus-Mobile-2.txt input/
# Clear output file if it exists
> WHITE_LIST_PROXY_COLLECTION.txt
# Process each file and filter content
for file in input/*.txt; do
echo "Processing $file..."
awk '
/Russia/ { next } # Skip lines with Russia (Our Primary Goal!)
/type=tcp/ && /sec(urity|ure)=none/ { next } # Skip type=tcp + security=none (VULNERABLE), order-agnostic
/sec(urity|ure)=none/ && !/type=xhttp/ { next } # Skip secure=none without type=xhttp
{ print } # Output valid lines
' "$file" >> WHITE_LIST_PROXY_COLLECTION.txt
done
echo "Results saved to WHITE_LIST_PROXY_COLLECTION.txt"
echo "Pushing changes to remote repo..."
git add WHITE_LIST_PROXY_COLLECTION.txt
git commit -m "WHITE_LIST_PROXY_COLLECTION.txt updated"
git push
echo "Done!"