Skip to content

Instantly share code, notes, and snippets.

@a9v8i
Last active June 19, 2022 23:53
Show Gist options
  • Save a9v8i/beaeabfd264ab68c6a24a3106e734dfb to your computer and use it in GitHub Desktop.
Save a9v8i/beaeabfd264ab68c6a24a3106e734dfb to your computer and use it in GitHub Desktop.
Tor Proxy on Termux Android for Bypass ISP Filtering Twitter & Telegram
#!/bin/bash
# v98
# ┌──(unk9vvn㉿avi)-[~]
# └─$ curl -sL https://gist.githubusercontent.com/a9v8i/beaeabfd264ab68c6a24a3106e734dfb/raw/2b7721e7fcc8b1dc0ceb23c3e58bc8b2cfc56bc7/TorTer.sh | bash
DHCPCD=$(cat $PREFIX/etc/tor/torrc|grep -o "UseBridges 1")
# Install Tools
pkg update
pkg upgrade -y
pkg install -y ncurses-utils
apt update
apt upgrade -y
apt dist-upgrade -y
apt install -y tor privoxy obfs4proxy
echo "\n"
echo "$(tput setaf 6)[*] Install Tools...$(tput sgr0)"
echo "\n"
# Tor Bridge Config
if [ "$DHCPCD" != "UseBridge 1" ]; then
echo "\n"
echo "$(tput setaf 6)[*] Tor Bridge Tunneling...$(tput sgr0)"
echo "\n"
echo "
UseBridges 1
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy managed
Bridge obfs4 46.8.43.62:2056 E262FA34E312499C2E5C4739B9E8A0FD89E53C72 cert=EzlP6NEGZVaFAsY2O0tUIWv50tiMI6XJd7tJN1EGldRZlXeOoM/i3Aiy98Ey+07aslOOKg iat-mode=0
Bridge obfs4 92.222.170.125:52234 CCD3DB930A2E621485C341B2013901A33A7FDA7F cert=aZXyZcI9kyh+G/jN8qU/6PeIz7K2/MmDLLw2WjmgrueRSw3iOeS/BjLie+HBsC9Twi3bPw iat-mode=0
Bridge obfs4 80.209.236.17:443 7F9BADD4362BE90A9154D6039049277152847085 cert=xSNIifvA2figjMYM+nX2dmHQvahNtUP5jffLdjFZtWS4q8ZTBEyXHqZF+I2SpAlS5EUWDg iat-mode=0
" >> $PREFIX/etc/tor/torrc
echo "forward-socks5 / 127.0.0.1:9050 ." > config
privoxy
echo "\n"
echo "$(tput setaf 6)[*] HTTP Proxy for Twitter App -> IP: 127.0.0.1 PORT: 8118$(tput sgr0)"
echo "\n"
tor 2>&1 &
sleep 10
am start -a android.intent.action.VIEW -d https://t.me/socks?server=127.0.0.1&port=9050
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment