nmap的-sV可以探测出服务版本,但有些情况下必须手动探测去验证,使用Wireshark获取响应包未免大材小用,可通过nc简单判断
eg.
对于端口,nc连接上去,随便输入一个字符串,得到了以下结果:
$nc-vvlocalhostlocalhost[.0.0.1](?)openasdHTTP/1.BadRequestDate:Fri,25Aug:15:25GMTServer:Apache/2.4.23(Debian)Content-Length:Connection:closeContent-Type:text/html;charset=iso--1!DOCTYPEHTMLPUBLIC"-//IETF//DTDHTML2.0//EN"htmlheadtitleBadRequest/title/headbodyh1BadRequest/h1pYourbrowsersentarequestthatthisservercouldnotunderstand.br//phraddressApache/2.4.23(Debian)Serverat.0.0.1Port/address/body/html
由此我们知道了这是一个