-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b424264
commit ad6f6d4
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
# node-mitmproxy | ||
Node.js MITM proxy | ||
基于nodejs 实现的MITM(中间人)代理 | ||
|
||
# 安装 | ||
## 安装 | ||
|
||
#### windows | ||
###### windows | ||
``` | ||
npm install node-mitmproxy -g | ||
``` | ||
#### Mac | ||
###### Mac | ||
``` | ||
sudo npm install node-mitmproxy -g | ||
``` | ||
|
||
# 生成CA根证书 | ||
## 生成CA根证书 | ||
``` | ||
node-mitmproxy createCA | ||
``` | ||
|
||
# 安装CA Root证书 | ||
#### Mac | ||
## 安装CA Root证书 | ||
###### Mac | ||
``` | ||
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/node-mitmproxy/node-mitmproxy.ca.crt | ||
``` | ||
#### windows | ||
###### windows | ||
``` | ||
start %HOMEPATH%/node-mitmproxy/node-mitmproxy.ca.crt | ||
``` | ||
|
||
# 启动代理 | ||
## 启动代理 | ||
``` | ||
node-mitmproxy start | ||
``` | ||
|
||
|
||
# 关于伪造https证书的逻辑图 | ||
## 关于伪造https证书的逻辑图 | ||
<img src="design/node-MitmProxy https.png"/> |