【问题标题】:Authorizate to router panel with Python使用 Python 授权路由器面板
【发布时间】:2016-08-15 19:54:03
【问题描述】:

我正在尝试使用 python 登录我的路由器面板,但问题是我不知道这样做的协议是什么。我尝试使用 Wireshark 进行查找,但它只显示了一个 GET 请求和一个响应。我尝试登录路由器,然后在数据包中搜索用户名和密码,但没有找到。 (我猜它是加密的)

如果有人可以帮助我了解登录面板的协议,将不胜感激。

【问题讨论】:

    标签: python python-3.x authorization router


    【解决方案1】:

    找到了。流动的 TCP 流给了我以下信息:

    GET / HTTP/1.1
    Host: 10.0.0.138
    Connection: keep-alive
    Cache-Control: max-age=0
    Authorization: Basic UG90YXRvOg==
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    Upgrade-Insecure-Requests: 1
    User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
    Accept-Encoding: gzip, deflate, sdch
    Accept-Language: en-US,en;q=0.8,he;q=0.6
    
    HTTP/1.0 401 Unauthorized
    WWW-Authenticate: Basic realm="NETGEAR DGN2200v2BEZEQ"
    Content-type: text/html
    
    <html>
    <head><title>401 Unauthorized</title></head>
    <body><h1>401 Unauthorized</h1>
    <p>Access to this resource is denied, your client has not supplied the correct authentication.</p></body>
    </html>
    

    用户名和密码编码为base64,格式为username:password

    【讨论】:

      猜你喜欢
      • 2015-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-04
      • 1970-01-01
      • 1970-01-01
      • 2022-11-17
      相关资源
      最近更新 更多