从IP地址查找设备信息

时间:2017-12-05 11:38:13

标签: port telnet iot port-scanning shodan

我有一个IP地址列表,它们可能是IOT设备。如何使用任何脚本/工具/服务找出设备的操作系统(我只有其IP地址)?任何帮助都会非常感激。我是新来的。感谢。

2 个答案:

答案 0 :(得分:0)

看看这个(例子):

你可以尝试编写自己的telnet脚本(打开会话,发送一些命令并检索你需要的信息)。

答案 1 :(得分: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'])
相关问题