有没有办法检查特定站点正在运行哪个服务器操作系统。例如从 linux 命令行。也许通过telnet?但我能从“telnet www.google.com http”得到的是:
Trying 209.85.173.104...
Connected to www.l.google.com.
Escape character is '^]'.
Run Code Online (Sandbox Code Playgroud)
如果可能的话,有人可以详细讨论这个主题吗?
Lad*_*ada 15
许多站点会在 HTTP 标头中告诉您:
$ curl -s -I hotmail.com | grep Server
Server: Microsoft-IIS/7.5
$ curl -s -I pinterest.com | grep Server
Server: nginx/0.8.54
Run Code Online (Sandbox Code Playgroud)
有些包括操作系统,有时包括版本:
$ curl -s -I linuxquestions.com | grep Server
Server: Apache/2.2.9 (Unix)
$ curl -s -I red.com | grep Server
Server: Apache/2.2.3 (Red Hat)
$ curl -s -I slashdot.org | grep Server
Server: Apache/2.2.3 (CentOS)
$ curl -s -I bar.com | grep Server
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8
Run Code Online (Sandbox Code Playgroud)
有些人编写自己的网络服务软件:
$ curl -s -I google.com | grep Server
Server: gws
$ curl -s -I yahoo.com | grep Server
Server: YTS/1.20.10
Run Code Online (Sandbox Code Playgroud)
但有些不发送Server
标头:
$ curl -s -I serverfault.com
HTTP/1.1 200 OK
Cache-Control: public, max-age=41
Content-Length: 129706
Content-Type: text/html; charset=utf-8
Expires: Tue, 27 Mar 2012 13:01:46 GMT
Last-Modified: Tue, 27 Mar 2012 13:00:46 GMT
Vary: *
Date: Tue, 27 Mar 2012 13:01:04 GMT
$ curl -s -I www.facebook.com
HTTP/1.1 302 Found
Location: http://www.facebook.com/common/browser.php
P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"
Set-Cookie: datr=sbpxT_PpXR9FO5mMTy8pCTjD; expires=Thu, 27-Mar-2014 13:03:45 GMT; path=/; domain=.facebook.com; httponly
Content-Type: text/html; charset=utf-8
X-FB-Debug: VJycxKwQ9bAV0Z/n6jfN1WSFx4pqj2337c1jc+pPlE0=
X-Cnection: close
Content-Length: 0
Date: Tue, 27 Mar 2012 13:03:45 GMT
Run Code Online (Sandbox Code Playgroud)
任何或所有这些都可能在撒谎。Bart 的建议nmap
更可能是准确的,但由于他提到的原因不能产生 100% 准确的结果。有时甚至没有意义,例如在 Google 上完成单个 HTTP 请求所涉及的服务器数量、它们的 Web 服务器、搜索服务器、数据库服务器、缓存服务器以及它们运行的任何其他东西都可能使用不同的操作系统,你将无法知道。
Bar*_*rim 13
您可以寻找内置于 NMap 中的操作系统指纹识别功能。
但是,如果您正在寻找诸如“Google 在运行什么?”之类的内容。你不会走得太远,因为你不知道他们的负载平衡器背后是什么,或者防火墙会阻止它,指纹只能如此准确,所以你可以得到错误的报告,当连接以某种方式进行 NAT 时,你可能无处可去'ed。
问 Netcraft:那个网站在运行什么?
http://uptime.netcraft.com/up/graph?site=google.com返回“服务器:gws”(即 Google 网络服务器)。
归档时间: |
|
查看次数: |
42491 次 |
最近记录: |