我需要帮助--请为Shodan写个剧本。我在显示器上有很多IP地址。我想编写一个从API监视器输出的脚本:所有易受CSV文件攻击的漏洞和IP地址。
谢谢
发布于 2022-05-28 21:06:11
最简单的方法是使用肖丹·克莱下载有关受监视it的所有信息,然后解析您所关心的横幅,或者将其转换为CSV。例如:
# Download all the data and store it in the file called "mydata.json.gz"
$ shodan alert download mydata.json.gz
# Convert the Shodan data file to CSV
# Note: the CSV will contain fewer properties than the JSON file
$ shodan convert mydata.json.gz csv您还可以查看上述shodan alert download命令的Python代码,以了解Shodan如何获取IP列表。您可以修改该代码,以便它只通过检查横幅上是否有vulns属性来下载有关存在漏洞的it的信息。
附加参考资料
https://stackoverflow.com/questions/71326934
复制相似问题