For this program it'snecessary install in a one Linux distribution (in this case the author has usedLinux Mind) the next tools:


-Stem:is a Python controllerlibrary for tor.

-Privoxy:is a non-caching webproxy with advanced filtering capabilities for enhancing privacy, modifying webpage data and HTTP headers, controlling access, and removing ads and otherobnoxious Internet junk. Privoxy has a flexible configuration and can becustomized to suit individual needs and tastes. It has application for bothstand-alone systems and multi-user networks.


Install Tor.

the socks listener is on port9050.

Next, do the following:

·Enable theControlPort listener for Tor to listen on port 9051, as this is the port towhich Tor will listen for any communication from applications talking to theTor controller.

·Hash a newpassword that prevents random access to the port by outside agents.

·Implementcookie authentication as well.

You can create a hashedpassword out of your password using:

In this case i put1234proof password. The hashpassword generated is:

Then, update the/etc/tor/torrc with the port, hashed password, and cookie authentication.

Restart Tor again to theconfiguration changes are applied.

if you have any problems, youcan enable control port using --controlport flag as follows:


Installpython-stemwhich is aPython-based module used to interact with the Tor Controller, letting us sendand receive commands to and from the Tor Control port programmatically.


Tor itself is not a httpproxy. So in order to get access to the Tor Network, useprivoxyas an http-proxy thoughsocks5.

Installprivoxyvia the followingcommand:

Now, tellprivoxyto use TOR by routingall traffic through the SOCKS servers at localhost port 9050.

and enableforward-socks5as follows:

Restartprivoxyafter making the changeto the configuration file.

  • 发表于:
  • 原文链接:
  • 腾讯「云+社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。