This small script downloads all Tor Relay IP addresses from onionoo.torproject.org directly and via embedded proxies, and checks whether random Tor Relays are reachable from your Internet connection.
It could be used to find working Relay in a countries with Internet censorship and blocked Tor, and use it as Bridge to connect to Tor network, bypassing standard well-known nodes embedded into Tor code.
Works on Windows and Linux. Not tested on macOS.
-g 1 --timeout 3 --browser --start-browser
python3
, and append the following arguments: -g 1 --timeout 3 --browser --start-browser
.echo -e '#!/bin/sh\nexec python3' ./tor-relay-scanner-*.pyz '-g 1 --timeout 3 --browser --start-browser' > run.sh && chmod +x run.sh
This utility is capable of generating torrc
configuration file containing Bridge information. Launch it with the following arguments:
--torrc --outfile /etc/tor/bridges.conf
And append:
%include /etc/tor/bridges.conf
to the end of /etc/tor/torrc
file to make Tor daemon load it.
Windows: download *.exe file from Releases and run it in console (start → cmd
)
Linux & macOS: download *.pyz file from Releases and run it with Python 3.7+:
python3 tor-relay-scanner.pyz