ddefewfewf
V2EX  ›  问与答

如何获取服务器每个端口是否提供 http 服务

  •  
  •   ddefewfewf · Apr 22, 2021 · 2215 views
    This topic created in 2027 days ago, the information mentioned may be changed or developed.

    nmap 扫描端口不是很准

    4 replies  •  2021-04-23 09:03:22 +08:00
    opengps
    opengps
    Apr 22, 2021
    1
    怎么定义 http 服务?除非访问一下看看是不是返回 html 代码,否则顶多可以算作为 tcp 服务
    ch2
    ch2
    Apr 22, 2021
    2
    应用层协议没有很好的检测方法,种类太多了
    ysc3839
    ysc3839
    Apr 23, 2021
    3
    当然是发个 HTTP 请求过去,看响应什么。
    imdong
    imdong
    Apr 23, 2021
    4
    扫端口,扫完发一个 http 请求过去,然后从响应包猜测。

    比如 http 的特征都是 HTTP/[01]\.[0-9]\s[0-9]{3}\s 开头
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3692 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:57 · PVG 17:57 · LAX 01:57 · JFK 04:57
    ♥ Do have faith in what you're doing.