【问题标题】:Find device information from IP address从 IP 地址查找设备信息
【发布时间】:2018-05-19 01:26:43
【问题描述】:

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

【问题讨论】:

  • 请提供拒绝投票的理由。

标签: port telnet iot port-scanning shodan


【解决方案1】:

看看这个(例如):

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

【讨论】:

    【解决方案2】:

    你可以用 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'])
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-01
      • 2014-05-25
      • 2018-01-05
      • 1970-01-01
      • 2020-11-01
      • 2012-08-16
      • 1970-01-01
      • 2015-01-29
      相关资源
      最近更新 更多