• 【Android抓包】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:
    在这里插入图片描述

    Traceback (most recent call last):
      File "/usr/bin/mitmproxy", line 6, in 
        from pkg_resources import load_entry_point
      File "/usr/local/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3257, in 
        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
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16

    报错subprocess-exited-with-error

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

      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.
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
  • 相关阅读:
    拙见--springMVC的controller接受的请求参数
    GIS前端-地图事件编程
    电脑中vcruntime140.dll丢失的四种修复方法,一键修复dll修复方法
    有哪些适用于 Windows 的PDF 阅读器?免费 PDF 阅读器清单
    Windows10关闭系统自动更新
    LeetCode 0529. 扫雷游戏
    了解一下Ubuntu Linux
    【前端面试题】01—42道常见的HTML5面试题
    使用STM32控制TMC5160驱动步进电机
    举个栗子~Tableau 技巧(245):用辅助标识快速查看标靶图
  • 原文地址:https://blog.csdn.net/qq_39441603/article/details/126689221