我是靠谱客的博主 俏皮朋友,这篇文章主要介绍【Android抓包】Ubuntu mitmProxy配置Ubuntu 安装 mitmProxy,现在分享给大家,希望可以做个参考。

Ubuntu 安装 mitmProxy

直接使用编译好的二进制包

参考:
https://cuiqingcai.com/31053.html#Linux-%E4%B8%8B%E7%9A%84%E5%AE%89%E8%A3%85

直接下载下载编译好的二进制包
https://mitmproxy.org/
在这里插入图片描述
解压出来,得到mitmproxy mitmdump mitmweb
在这里插入图片描述
sudo mv mitmproxy mitmdump mitmweb /usr/bin

之后可以直接使用

报错pkg_resources.DistributionNotFound

如果使用sudo apt install mitmproxy,安装可以成功,但是运行mitmproxy会报错:

pkg_resources.DistributionNotFound: The ‘mitmproxy==2.0.2’ distribution was not found and is required by the application:
在这里插入图片描述

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Traceback (most recent call last): File "/usr/bin/mitmproxy", line 6, in <module> from pkg_resources import load_entry_point File "/usr/local/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3257, in <module> def _initialize_master_working_set(): File "/usr/local/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3240, in _call_aside f(*args, **kwargs) File "/usr/local/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3269, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 582, in _build_master ws.require(__requires__) File "/usr/local/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 899, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 785, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'mitmproxy==2.0.2' distribution was not found and is required by the application

报错subprocess-exited-with-error

如果使用sudo pip3 install mitmproxy,会报错 subprocess-exited-with-error:
在这里插入图片描述

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [1 lines of output] ERROR: Can not execute `setup.py` since setuptools is not available in the build environment. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.

最后

以上就是俏皮朋友最近收集整理的关于【Android抓包】Ubuntu mitmProxy配置Ubuntu 安装 mitmProxy的全部内容,更多相关【Android抓包】Ubuntu内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(63)

评论列表共有 0 条评论

立即
投稿
返回
顶部