-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstep.txt
More file actions
86 lines (52 loc) · 2.98 KB
/
step.txt
File metadata and controls
86 lines (52 loc) · 2.98 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 假设已把 mitmproxy-ca-cert.pem 放在 C:\Users\you\.mitmproxy\
certutil -decode C:\Users\you\.mitmproxy\mitmproxy-ca-cert.pem C:\Users\you\.mitmproxy\mitmproxy-ca-cert.der
certutil -hashfile C:\Users\you\.mitmproxy\mitmproxy-ca-cert.der SHA256
3a2751d49c99357006f2e123d44d02246d722e57:长度 40 个十六进制字符,是 SHA‑1 指纹(20 字节)。
FB:C2:EE:...:55:10:看起来是用冒号分隔的 32 字节(64 hex chars),是 SHA‑256 指纹。
dingxingmei@DESKTOP-ID4C1EB MINGW64 ~
$ # 转成 DER(二进制)
openssl x509 -in ~/.mitmproxy/mitmproxy-ca-cert.pem -outform der -out /tmp/mitm.der
# SHA-256 指纹(与你早前得到的那种格式一致)
openssl dgst -sha256 /tmp/mitm.der
# 或直接:
openssl x509 -in ~/.mitmproxy/mitmproxy-ca-cert.pem -noout -fingerprint -sha256
# SHA-1 指纹
openssl x509 -in ~/.mitmproxy/mitmproxy-ca-cert.pem -noout -fingerprint -sha1
SHA2-256(C:/Users/DINGXI~1/AppData/Local/Temp/mitm.der)= fbc2eed0283f2d8d05ebc1c69b3c209068355141a9f8a
dd94cee2b1677e35510
sha256 Fingerprint=FB:C2:EE:D0:28:3F:2D:8D:05:EB:C1:C6:9B:3C:20:90:68:35:51:41:A9:F8:AD:D9:4C:EE:2B:16
:77:E3:55:10
sha1 Fingerprint=3A:27:51:D4:9C:99:35:70:06:F2:E1:23:D4:4D:02:24:6D:72:2E:57
mitmdump --listen-port 8080 -s save-token-debug.py
mitmweb --listen-port 8080 --web-port 8081 -w flows
勿对以下地址使用代理服务器
localhost;127.*;192.168.*;10.*;172.16.*;172.17.*;172.18.*;172.19.*;172.20.*;172.21.*;172.22.*;172.23.*;172.24.*;172.25.*;172.26.*;172.27.*;172.28.*;172.29.*;172.30.*;172.31.*;windows10.microdone.cn
# 1) 把 mitmproxy 置于可访问状态并保存 flows,同时把控制台输出也记录
mitmdump --listen-port 8080 -w flows.mitm > mitmdump.log 2>&1
# 2) 抓一段时间后 Ctrl-C 停止。然后用 mitmweb 打开并导出 HAR(若需要)
mitmweb -r flows.mitm
# 在浏览器打开 http://127.0.0.1:8081,选中 flows -> Export -> HAR
mitmdump --listen-port 8080 -s print-urls.py
# print_urls.py
from mitmproxy import ctx
def request(flow):
ctx.log.info("URL: " + flow.request.pretty_url)
2510130700 fail to ,rest
mitmdump --listen-port 8080
mitmdump --listen-port 8080 -w aaa.mitm
mitmdump -r aaa.mitm
mitmweb -r aaa.mitm
2510131626 #see save_token时 我已经 flow.mitm 文件 可以解析save吗 mitmdump -nr aaa.mitm -s save_token.py
wait to do py内 内置短暂修改 代理
wait https://chatgpt.com/c/68eca958-1930-8323-82bf-a95e3cc9f799 这个里面给了很多改进建议包括 当时mitm 版本:下面我给你逐段分析这段 embedded_mitm.py 的实现 并发请求 多线程
mitmdump --listen-port 8080 -w aaa.mitm
mitmdump -nr aaa.mitm -s save_token.py
01a37b7
git tag -a v1.6.2.1 <01a37b7> -m "v1.6.2.1- manually test py modules success"
cd /d/whether1/txbbs-WxMiniProgramScript
2510141330 proxy 无连接问题
mitmproxy --listen-port 8080 给mitmproxy加
mitmdump
git tag -a v1.6.2.3 -m "v1.6.2.3 release"
dingxingmei@DESKTOP-ID4C1EB MINGW64 /d/whether1/txbbs-WxMiniProgramScript (main)
$ git push origin --tags