Skip to content

Instantly share code, notes, and snippets.

@yesmeck
Last active April 23, 2017 21:32
Show Gist options
  • Save yesmeck/5869228 to your computer and use it in GitHub Desktop.
Save yesmeck/5869228 to your computer and use it in GitHub Desktop.
Tor note
# 更换身份
> telnet localhost 9051
AUTHENTICATE
SETCONF ExitNodes={us}
SETCONF StrictNodes=1
SIGNAL NEWNYM
QUIT
Or
printf "AUTHENTICATE \"password\"\r\nSIGNAL NEWNYM\r\n" | nc 127.0.0.1 9051
# 生成认证密码
tor --hash-password foobar
# 然后编辑 /etc/tor/torrc
HashedControlPassword 16:2424A9E9FBFC078560BCF29592B030BD3C2426486B3E97D5C3C384A1EF
# 用 Privoxy 把 tor 变成 http 代理
# ubuntu
sudo apt-get install privoxy
sudo vim /etc/privoxt/config
添加 'forward-socks5 / localhost:9050 .'
sudo /etc/init.d/privoxy start
curl --proxy 127.0.0.1:8118 http://ifconfig.me/ip
@yesmeck
Copy link
Author

yesmeck commented Aug 26, 2014

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