如何检测Web服务器的OS版本 [英] How to detect OS version of a web server

查看:567
本文介绍了如何检测Web服务器的OS版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用其IP地址检测Web服务器的操作系统版本(知道Web服务器正在运行php)。

Is there a way to detect the Operating System version of a web server using its IP address (with knowledge that the web server is running php).

我没有我还试图编码,因为我是初学者。这简单吗?是否有可能?

I haven't attempted to code it yet, as i am a beginner. Is it easy? Is it possible or not possible at all?

推荐答案

在所有操作系统上都没有正式的方法来检测远程服务器上的操作系统配置。泄露此类信息通常被视为安全风险,因为它可用于研究基于操作系统版本及其运行的任何服务的定向攻击。

There's no official way to detect OS on a remote server across all operating systems and configurations. It's often considered a security risk to expose such information, since it can be used to research directed attacks based on the version of the OS and any services it runs.

但是,您可以指纹系统猜测操作系统,具体取决于它所公开的服务。许多服务都会显示当前正在运行的操作系统,有些会暗示它或提供有关系统的广泛信息。

However, you can fingerprint systems to "guess" the OS, depending on the services it exposes. Many services will reveal the OS that is currently running, some will hint at it or provide broad information about the system.

我当然不会建议任何没有经验的PHP尝试这样的项目,但这里有一些链接让你开始:

I certainly wouldn't suggest anyone inexperienced in PHP attempt such a project, but here are some links to get you started:

  • Finger Protocol: http://en.wikipedia.org/wiki/Finger_protocol
  • nmap security scanner (includes OS fingerprinting): http://nmap.org/
  • nmap's book on remote OS detection: http://nmap.org/book/osdetect.html

如果您只想找出查看您网站的用户的操作系统,您应该查看用户代理 HTTP标头: http://en.wikipedia.org/wiki/User_agent

If you're just trying to find out the OS of the user viewing your website, you should look into the User-Agent HTTP header: http://en.wikipedia.org/wiki/User_agent

这篇关于如何检测Web服务器的OS版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆