Skip to content

Instantly share code, notes, and snippets.

@ramajd
Created April 8, 2025 08:25
Show Gist options
  • Save ramajd/5e405716ca495d61817f4caf71f5940e to your computer and use it in GitHub Desktop.
Save ramajd/5e405716ca495d61817f4caf71f5940e to your computer and use it in GitHub Desktop.
script to gather proxies which are based on port 443
#!/usr/bin/env bash
set -e
data=$(curl https://raw.githubusercontent.com/soroushmirzaei/telegram-configs-collector/main/splitted/mixed 2>/dev/null)
echo $data | base64 -d | while IFS= read -r line; do
if [[ "$line" != "trojan"* && "$line" != "vmess"* ]]; then
port=$(echo $line | cut -d '@' -f2 | cut -d'#' -f1 | cut -d '?' -f1 | cut -d ':' -f2)
if [[ "$port" == "443" ]]; then
echo $line
fi
fi
done
>&2 echo DONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment