我有一个 IP 地址列表,它们可能是 IOT 设备。如何使用任何脚本/工具/服务找出设备的操作系统(我只有它的 IP 地址)?任何帮助将不胜感激。我是新来的。谢谢。
问问题
1817 次
2 回答
0
于 2017-12-06T10:49:30.627 回答
0
你可以用 Shodan 做到这一点。Shodan 尽可能包含操作系统,并为您提供许多附加信息来确定它是否是物联网设备。以下是 Python 中的一些示例代码,可帮助您入门:
from shodan import Shodan
# Setup the API connection
api = Shodan("YOUR API KEY") # Get it from https://account.shodan.io
# Lookup the IP information
host = api.host("66.96.212.7")
# If Shodan was able to identify the operating system then it will have
# an "os" property
if 'os' in host and host['os']:
print(host['os'])
# You can also look at the list of ports running on the IP to determine
# whether it's an IoT device
print(host['ports'])
# Or you can look at the "tags" property as that sometimes includes an "iot" tag
print(host['tags'])
于 2017-12-10T00:35:14.590 回答