
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
基于TLS协议的http流量代理
※ 需要python3.7+
linux: sudo python3 -m pip install TlsProxys
windows: pip install TlsProxys
服务器端:
$ tpserver [command] [filename1[, filename2]]
客户端:
$ tpclient [command] [filename1[, filename2]]
举例:
读取config.json作为配置文件:
tpclient -c config.json
生成 app.key app.crt 私钥-证书对:
tpclient -g app.key app.crt
在本目录下递归查找config.json:
tpclient -r config.json
若不带参数地调用tpclient/tpserver
且当前目录下不存在config.json
, TlsProxys会交互式地读取用户的输入并在本目录下生成一个config.json
文件。
注意:客户端和服务器的配置文件略有不同
本条目将给出一个比较完整的提示,一般用户可以参考本流程使用TlsProxys。
在本节所有示例中,tpclient运行在本地 ; tpserver运行在服务器端。
首先,用户需要确保机器上安装有openssl库。可用如下命令测试:
openssl version
若打印版本信息,则openssl已经安装。
TlsProxys使用Tls协议传输数据, 服务器上需要私钥-证书对, 首先在本地生成一个私钥,并用它生成自签名证书:
tpclient -g app.key app.crt
TlsProxys会自动调用openssl, 按照提示输入信息。如果调用成功,本目录下会生成
app.key
, app.crt
两个文件。
在本地,把app.crt
导入浏览器根证书列表;把app.key
和app.crt
传输到远程服务器。
在服务器上, cd到app.key
和app.crt
的目录下, 执行:
tpserver
这会启动一个交互式的读取器, 输入示例如下:
server: 255.255.255.255
port: 8000
password: my_password
certificate: app.crt
private-key: app.key
若解释器没有抛出异常, 命令行应该打印:
255.255.255.255:8000 is serving
在本地, 执行:
tpclient
在交互式读取器内输入:
server: 255.255.255.255
port: 8000
password: my_password
local_port: 8080
若解释器没有抛出异常, 命令行应该打印:
127.0.0.1:8080 is serving
最后修改浏览器代理配置:
地址: 127.0.0.1
端口: 8080
Done.
GPLv3
FAQs
a safe http proxy over tls
We found that TlsProxys demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.