Skip to content

Instantly share code, notes, and snippets.

@Dayof
Last active April 15, 2017 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dayof/5d3c4d1f816263a6eac815f38444bca7 to your computer and use it in GitHub Desktop.
Save Dayof/5d3c4d1f816263a6eac815f38444bca7 to your computer and use it in GitHub Desktop.

Instalar:

 $ sudo apt-get install tor privoxy -y
 $ pip install selenium

Executar:

 $ sudo cp /etc/privoxy/config /etc/privoxy/config.bkup
 $ echo "forward-socks5 / localhost:9050 ." >> /etc/privoxy/config'

Configurar:

  $ tor --hash-password suasenha

Descomente as seguintes linhas no arquivo /etc/tor/torrc:

  ControlPort 9051
  HashedControlPassword
  colocarohashgeradonopassoanterior
  CookieAuthentication 1

Execute o tor e privoxy e checar se Tor está rodando na porta 9050 e privoxy na porta 8118:

  $ netstat -tulpn | grep 9050  
  $ netstat -tulpn | grep 8118

Rodar o arquivo:

  $ python3 gocris.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment