3 ms·
Cool project. It shows the power of Tor hidden services here: you can have peer to peer communication regardless of either side's network topology. It just need
by lucb1e 12y ago
Cool project. It shows the power of Tor hidden services here: you can have peer to peer communication regardless of either side's network topology. It just needs to connect to the Tor network and you're good to go. (And yes, Tor can connect through "fascist" firewalls, as the configuration itself puts it[1].)
If you think about it, it's dead simple to make: run the tor binaries, run a netcat binary that listens on a certain port, and configure tor (two lines of config) to run a hidden service connecting to that netcat port. Then read the generated hostname file for the .onion address and display it to the user. Reverse thing on the other side.
nc -l 1111 < super_secret.rar
echo 'HiddenServicePort 1112 127.0.0.1:1111' >> /etc/tor/torrc
echo 'HiddenServiceDir /var/lib/tor/hidden_service/' >> /etc/tor/torrc
service tor restart
cat /var/lib/tor/hidden_service/hostname # share w/ friend
I don't mean to say that OnionShare is not useful, OnionShare to the above script is what Firefox is to Lynx (to take an example). I just mean to say that it's interesting how easily this can be done with just five commands.
[1] https://www.torproject.org/docs/tor-manual.html.en#FascistFirewall https://www.torproject.org/docs/tor-manual.html.en#FascistFi...
- thegeomaster 12y agoWithout HTTP, it'll be a little clumsy. The downloader won't be able to pause and resume the download, and won't know what is the progress of the download (unless you tell her the exact file size beforehand, which might be tricky sometimes, especially in automated circumstances). You will also need to resort to this for sharing the metadata such as the MIME type of the file. I think using HTTP for this is more robust, even if it requires you to download and spin up OnionShare. Btw, the fascist firewall evasion is great. In my dorm, the only allowed ports were 80 and 443, and I was able to connect to Tor effortlessly.
- swixmix 12y agohttp has overhead. i recommend zmodem.
- stingraycharles 12y agoAs a friendly reminder to other Tor entry node operators: this firewall evasion only works if you have your tor node running on port 80/443. Please consider doing so.