I write a Perl script that uses Wget to connect and download from the internet. This script mission is simply to download public files and folders from Google Drive/Docs.

I want to provide a simple way to use it with Tor, for example, just passing --tor to it while there is a Tor Browser Bundle (TBB) is running.

Wget doesn't seem to work with Torsocks, nor Torsocks does work with TBB. Is there any good and easy way?

Any relevant Tor- or Google-related privacy advice is appreciated.

This script is made mainly for those who are forced to download (regularly) from Google Drive, but don't want to connect a Drive folder to their account and use a Google desktop application (even it's a libre/free software).

Edit: the script now use Wget only; no HTTP::Tiny or other module is used to connect to the internet.

  • wget and perl both work with torsocks? – cacahuatl Mar 16 '17 at 16:34
  • @canonizingironize, I didn't try to torify Perl; I want to make it from the inside. The most recent solution to torify Wget didn't work with me. And it uses an installed Tor, which is outdated most of the time. And Torsocks doesn't work with TBB. – Nour-eddin Mar 17 '17 at 1:14
  • torsocks does work with TBB if you edit it's configuration file: see this answer. – cacahuatl Mar 17 '17 at 2:56
  • HTTP::Tiny and wget only supports HTTP proxies natively, so without another proxy running to connect to Tor's SOCKS proxy then torsocks or using transparent proxying with iptables or pf would be the only way forward, neither of which can be achieved from within the program itself. – cacahuatl Mar 17 '17 at 3:04
  • Thank you very much! I installed and configured torsocks, and used this script, and it works! I didn't think the solution is going to be that easy. (The IP in Wget is different from TBB, though. Maybe it's using a different circuit?) Could you please make it an answer so I can choose it as the best answer to the question? – Nour-eddin Mar 17 '17 at 21:08

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.