mitmproxy

公司中层管理的课程,实在是太糟心了。逼迫在短期内,学习大量的管理课程。于是动了“歪脑筋”,想着抓下来,慢慢回顾。

mitmproxy 在新的版本中,已经不再支持使用 P 就复制出python request 脚本,或者curl 命令了。现在采用的是command的方式。但获得请求的curl命令,还是非常常用的需求。

通过配置keys.yaml,就能实现。

1
2
3
4
➜ cat ~/.mitmproxy/keys.yaml
-
key: c
cmd: export.clip curl @focus
Author: Chandler Kwok
Link: http://yoursite.com/2020/05/30/mitmproxy/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.