V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Macv1994
V2EX  ›  Python

Python 的 scapy 怎么获取 HTTPS 请求的 URL 呀?

  •  
  •   Macv1994 ·
    weijiang1994 · Jan 28, 2022 · 3151 views
    This topic created in 1564 days ago, the information mentioned may be changed or developed.

    如题,我只能获取到 HTTP 请求的详细信息,是不是因为 HTTPS 加密了,所以获取不到?

    6 replies    2022-02-02 09:08:43 +08:00
    learningman
        1
    learningman  
       Jan 28, 2022
    你是想说 https 的 mitm ?需要装自定义 CA
    Macv1994
        2
    Macv1994  
    OP
       Jan 29, 2022
    @learningman 就是想要获取到 HTTPS 请求中的 URL ,其他的信息无所谓,HTTP 请求的 URL 可以获取,但是不知道怎么获取 HTTPS 请求的 URL
    learningman
        3
    learningman  
       Jan 30, 2022
    @Macv1994 #2 https://charlesreid1.com/wiki/Man_in_the_Middle/HTTPS
    但是看着感觉挺麻烦,建议换 mitm-proxy 之类的东西
    1462326016
        4
    1462326016  
       Jan 31, 2022
    据我所知这个东西是用来嗅探流量的,如果你是通过中间人或者其他方式获取的话,是很困难的,因为 https 的流量是加密过的,没有证书的话是没法解密的,除非你通过中间人的方式,在受害者的机器上安装你自己签发的证书,或者你能拿到对应网站的私钥(基本不可能),所以,如果是我理解的需求的话,放弃吧,哈哈
    但是如果你是自己拿来做验证或者学习研究之用,可以在自己的机器上安装证书,然后就可以为所欲为了,哈哈🤣
    Macv1994
        5
    Macv1994  
    OP
       Feb 2, 2022 via Android
    @learningman 好的 谢谢 我看一下
    Macv1994
        6
    Macv1994  
    OP
       Feb 2, 2022 via Android
    @1462326016 嗯,就是您理解的这种需求。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3334 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 13:14 · PVG 21:14 · LAX 06:14 · JFK 09:14
    ♥ Do have faith in what you're doing.