用于shodan的python库和命令行实用程序(https://developer.shodan.io)

shodan的Python项目详细描述


https://img.shields.io/pypi/v/shodan.svghttps://img.shields.io/github/contributors/achillean/shodan-python.svg

Shodan是一个互联网连接设备的搜索引擎。谷歌允许你搜索网站, Shodan允许您搜索设备。这个库为开发人员提供了对所有 存储在Shodan中的数据,以便自动化任务并集成到现有工具中。

功能

https://cli.shodan.io/img/shodan-cli-preview.png

快速启动

fromshodanimportShodanapi=Shodan('MY API KEY')# Lookup an IPipinfo=api.host('8.8.8.8')print(ipinfo)# Search for websites that have been "hacked"forbannerinapi.search_cursor('http.title:"hacked by"'):print(banner)# Get the total number of industrial control systems services on the Internetics_services=api.count('tag:ics')print('Industrial Control Systems: {}'.format(ics_services['total']))

https://account.shodan.io获取api密钥

安装

要安装Shodan库,只需:

$ pip install shodan

或者如果您没有安装pip(您应该认真安装):

$ easy_install shodan

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
gwt java。lang.UnsupportedClassVersionError:不受支持的专业。小版本51.0   java XML解析器trycatch不工作   java Jackson MRBean不工作,无法构造实例   javascript是检查参数的更好方法吗?   java在发生冲突时从ArrayList中删除对象   JavaSpringWebFlux和KeyClope JWTRESTAPI   java Selected选项在微调器中不可见   java在增加分区后,有没有办法在ApacheKafka中保持顺序?   java添加SourceRoot会导致spring启动应用程序出错   java Spring引导:任何bean都没有实现ReactiveCrudepository   java无法注册我的自定义AbstractAnnotationConfigDispatcherServletInitializer   TCP连接上的java Caesar密码   java树集排序不正确   java如何在自定义查询中加载@ElementCollection?