I am trying to write a Python script that when given an IP address it will attempt to identify the OS of a remote host. I am aware Nmap will do this easily but I would like to try and write one in Python.

Having the ability to identify Linux/Windows/Mac etc would be great but would prefer to identify kernel version.

Any suggestions or directions that I may be able to investigate?

有帮助吗?

解决方案

Scapy and p0f are your best bet. People have had differing results however.

http://blog.pierre.droids-corp.org/2008/01/scapy-using-p0f.html

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top