Windows Keep Anonymous
ssooking Lv5

Windows Keep Anonymous

Mac地址修改:

硬盘序列号修改工具

Windows Install Tor Service

下载

解压tor-win32-0.4.4.5.zip,执行tor.exe

1
2
3
4
$ E:\tor-win32-0.4.4.5\Tor>tor.exe
....
Bootstrapped 95% (circuit_create): Establishing a Tor circuit
Bootstrapped 100% (done): Done

出现100% (done)的输出说明Tor正常工作了,但是关闭窗口tor将停止运行,我们可以将tor其作为服务安装。

首先在Tor目录E:\tor-win32-0.4.4.5\下创建torrc配置文件,内容如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
## Configure Data Directory
DataDirectory E:\tor-win32-0.4.4.5\Data\Tor
GeoIPFile E:\tor-win32-0.4.4.5\Data\Tor\geoip
GeoIPv6File E:\tor-win32-0.4.4.5\Data\Tor\geoip6

## Use Proxy Connect Tor
# HTTPSProxy 127.0.0.1:8118
# SOCKS5Proxy 127.0.0.1:1080

## Bind to this port to listen connections from SOCKS-speaking applications.
SocksPort 9050
DNSPort auto
#If you start to get errors enable the log to see it.
#Log err file E:\tor-win32-0.4.4.5\Data\Tor\error.log

然后安装Tor服务,设置启动参数,启动时加载配置文件。

1
$ E:\tor-win32-0.4.4.5\Tor>tor.exe --service install -options -f "E:\tor-win32-0.4.4.5\torrc"

启动和停止Tor服务:

1
2
tor.exe --service start
tor.exe --service stop

删除Tor服务(必须先停止服务):

1
tor.exe --service remove

查看tor默认端口9050是否监听,确认tor服务正常启动

1
2
3
netstat -aon | findstr ":9050"

for /f "tokens=1,2,3,4,5*" %i in ('netstat -ano ^| findstr ":9050" ^| findstr /i listening') do echo %j %l & @tasklist | findstr %m

如果Tor服务成功启动,只需要全局设置socks5代理即可,端口9050

可以使用:Privoxy、Proxifier、

privoxy配置

1
2
forward-socks5 / 127.0.0.1:1080 .
listen-address 127.0.0.1:8118 # 可改为0.0.0.0:8118 允许局域网的连接

Mozzila设置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
geo.enabled = false
geo.wifi.uri = [leave blank]
network.http.accept.default = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

network.http.use-cache = false
network.http.keep-alive.timeout = 600
network.http.max-persistent-connections-per-proxy = 16
network.proxy.socks_remote_dns = true
network.cookie.lifetimePolicy = 2
network.http.sendRefererHeader = 0
network.http.sendSecureXSiteReferrer = false
network.protocol-handler.external = false [set the default and all the subsettings to false]
network.protocol-handler.warn-external = true [set the default and all the subsettings to true]
network.http.pipelining = true
network.http.pipelining.maxrequests = 8
network.http.proxy.keep-alive = true
network.http.proxy.pipelining = true
network.prefetch-next = false
browser.cache.disk.enable = false
browser.cache.offline.enable = false
browser.sessionstore.privacy_level = 2
browser.sessionhistory.max_entries = 2
browser.display.use_document_fonts = 0
intl.charsetmenu.browser.cache = ISO-8859-9, windows-1252, windows-1251, ISO-8859-1, UTF-8
dom.storage.enabled = false
extensions.blocklist.enabled = false

Reference

https://www.reddit.com/r/TOR/comments/8b93g3/install_tor_as_a_windows_service/

How to install Tor and create Tor hidden service on Windows

  • Post title:Windows Keep Anonymous
  • Post author:ssooking
  • Create time:2019-01-12 10:05:00
  • Post link:https://ssooking.github.io/2019/01/windows-keep-anonymous/
  • Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.