
#in your torrc, you need to store the hashed version of 'password' which you can get with: subprocess.call( '"' + tor_path+'tor.exe" -hash-password %s' %control_password ) Tor_process = subprocess.Popen( '"' + tor_path+'tor.exe" -nt-service "-f" "' + torrc_path + '"', creationflags=DETACHED_PROCESS ) # somebody please let me know if there's a way to make this a child process that automatically dies (in windows) #calling as a detached_process means the program will not die with your python program - you will need to manually kill it # programmatically start tor (in windows environment) #get a huge speed increase by not downloading imagesįf_t_preference( "", 2 )

#if you're really hardcore about your securityįf_t_preference( "javascript.enabled", False )

In FF for example, like this: #set some privacy settingsįf_t_preference( "", False )įf_t_preference( "", True )įf_t_preference( "", True )įf_t_preference( "", True )įf_t_preference( "", True )įf_t_preference( "signon.rememberSignons", False )įf_t_preference( "", 2 )įf_t_preference( "", True )įf_t_preference( "", 0 )įf_t_preference( "", 1 )įf_t_preference( "_version", 5 )įf_t_preference( "", '127.0.0.1' )įf_t_preference( "_port", 9050 )įf_t_preference( "_remote_dns", True )

Don't use the TBB, just set the correct proxy settings in whatever browser you're using.
