有一个可靠的方式来检测从Linux工作站的networking主机的操作系统?

如何检测networking上运行的计算机的操作系统。

我们使用linux。 我想在python上编写封装,它会定期扫描networking并将结果写入Google电子表格。 我试过nmap -O和-A,但不幸的是这个命令不可靠。 因为

  1. 这取决于运行服务和nmap指纹数据库。

  2. 如果在安装的nmap数据库中没有指纹 – 扫描仪无法确定操作系统版本。

有没有可靠的操作系统检测方法的Windows / Linux主机与免费工具?

以下是您可以阅读的内容列表:

  • 你可以ssh和使用uname -o

  • 使用你可以使用ping来sorting确定OS , 这里的一些OS的不错的链接。

  • 如果你的机器是股票,那么只需使用nmap ,这是一个明确的项目。

  • 或者你可以读入IP Stack Fingerprinting并且有一个机器拦截数据包。

您可以使用pof – 被动操作系统检测。

P0f is a tool that utilizes an array of sophisticated, purely passive traffic fingerprinting mechanisms to identify the players behind any incidental TCP/IP communications (often as little as a single normal SYN) without interfering in any way. Version 3 is a complete rewrite of the original codebase, incorporating a significant number of improvements to network-level fingerprinting, and introducing the ability to reason about application-level payloads (eg, HTTP).