7

For very specific reasons, I need to use the Tor in a regular Firefox browser. (I'm trying to use Selenium WebDriver and Tor together, but the Tor Browser doesn't allow the WebDriver add-on, so therefore, I need to use Tor with a regular Firefox browser.)

I am using a Windows 7 machine.

What I've tried

  • I've taken the .xpi file from the Tor Browser Bundle default profile and installed it to Firefox. However, when I run Firefox with it, I get the following screen: Something Went Wrong!
  • I've downloaded the TorButton git repository from the TorButton project page. However, when I try run makexpi.sh with Git Bash, it doesn't work because the zip command isn't defined on Windows machines.
Joel Christophel
  • 123
  • 1
  • 1
  • 6

3 Answers3

4

This might be a dumb question, but are you actually running tor? I don't think torbutton itself does this, you need something like Torlauncher to run tor as a standalon service by itself and then you proxy your browser through it.

Edit: I should add, to simplify things you could run tor using the full tor browser bundle and then just (close the torbrowser and) set your customized firefox's proxy settings to run tor.

I should note that the Torrify HOWTO strongly recommends against this sort of setup for security reasons. The torbrowser has had a few years of vetting and bugfixes to acheive the kind of security it has today. If you really need webdriver though, just know in advance that you are likely sacrificing security as a tradeoff for functionality.

Neil Neyman
  • 759
  • 2
  • 8
  • 16
3

Try going to the Firefox options menu and configuring Tor as a proxy. This will mean that you have to start Tor in the background but I did it with Chrome and it worked fine.

Menu > Options > Advanced > Network > Connection > Manual Proxy Configuration:

SOCKS Host is 'localhost' or '127.0.0.1' and port is 9150.

Make sure 'Remote DNS' is ticked

speedstyle
  • 43
  • 5
0

To address your reason for this question:

(I'm trying to use Selenium WebDriver and Tor together, but the Tor Browser doesn't allow the WebDriver add-on, so therefore, I need to use Tor with a regular Firefox browser.)

If you just want to remote-control the Tor Browser, have a look at Marionette from Mozilla. It is built into the Tor Browser (and every other current Firefox). You enable it on the command line by calling

Browser/firefox -marionette

(inside the bundle). You initialize via

from marionette import Marionette
client = Marionette('localhost', port=2828);
client.start_session()

and load a new page for example via

url='http://mozilla.org'
client.navigate(url);

There is a tutorial (and further documentation) at readthedocs.

(copy of other answer).

serv-inc
  • 387
  • 1
  • 18