我正在尝试使用mitmproxy来调试一些https请求。我已经将mitmproxy配置为侦听某个端口:
mitmproxy --listen-port 44700我已经正确地配置了我的环境:
export http_proxy=http://localhost:44700
export https_proxy=https://localhost:44700这也适用于http:
» http http://www.example.org正像预期的那样击中了mitmproxy。
Buuut https失败了:
» http https://www.example.org
Traceback (most recent call last):
File "/usr/bin/http", line 9, in <module>
load_entry_point('httpie==0.9.2', 'console_scripts', 'http')()
File "/usr/lib/python2.7/dist-packages/httpie/core.py", line 186, in main
error('%s: %s', type(e).__name__, str(e))
TypeError: __str__ returned non-string (type Error)问题:
mitmproxy中配置另一个端口来监听https?http (工具)信任mitmproxy CA?发布于 2018-05-08 23:02:55
网上的gui很舒服。您可以使用mitmproxy代替。
mitmweb --listen-port 44700 ,确保防火墙中的44700端口是打开的。您可以使用--listen-host标志指定代理的IP。如果无法远程访问,请尝试--listen-host 192.168.0.10或尝试--listen-host 0.0.0.0。http://127.0.0.1:8081/#/flows 享受网络拦截。发布于 2018-05-07 09:02:58
向ip/端口信任您的设备代理,并在浏览器上打开http://mitm.it,并选择一个os来安装CA。
更多细节,您可以参考官方文件。
https://serverfault.com/questions/898919
复制相似问题