Last active
April 23, 2017 21:32
-
-
Save yesmeck/5869228 to your computer and use it in GitHub Desktop.
Tor note
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 更换身份 | |
> 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DeletGate 更好用 http://superuser.com/questions/423563/convert-http-requests-to-socks5