Script send "/bridges" to @GetBridgesBot, set obfs4 proxy in torrc and restart tor
git clone https://github.com/delyee/getOnionBridgeFromTelegram
pip3 install -r requirements.txt
- Create app - https://my.telegram.org/apps & get "api_id" / "api_hash"
- Paste your phone number, api_id and api_hash in config.py
apt install tor obfs4proxy
echo "ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy" >> /etc/tor/torrc
echo "UseBridges 1" >> /etc/tor/torrc
python3 main.py
[!] First start: paste 6-digit code from Telegram notification in console & press Enter
Congratulations, you are beautiful. Logs in getbridges.log
python3 main.py
and paste 6-digit code from Telegramcp getOnionBridgeFromTelegram/conf/supervisord/getOnionBridgeFromTelegram.conf /etc/supervisor/conf.d/
- change work directory (line 4) and timeout (line 5) in
/etc/supervisor/conf.d/getOnionBridgeFromTelegram.conf
systemctl reload supervisord
check status: supervisorctl status getOnionBridgeFromTelegram
python3 main.py
and paste 6-digit code from Telegramcrontab -e
@reboot sleep 60 && /usr/bin/python3 /root/getOnionBridgeFromTelegram/main.py
python3 main.py
and paste 6-digit code from Telegram- change path in
getOnionBridgeFromTelegram/conf/systemd/getonionbridges.service
python3 main.py
and paste 6-digit code from Telegram- Copy
getOnionBridgeFromTelegram/conf/systemd/*
systemctl daemon-reload && systemctl disable getonionbridges.service && systemctl enable getonionbridges.timer
check status: systemctl status getonionbridges.timer