品易云推流 关闭
文章详情页
文章 > Python基础教程 > Python中shodan模块是什么?

Python中shodan模块是什么?

头像

十一

2021-03-03 17:54:183775浏览 · 0收藏 · 0评论

 

本文教程操作环境:windows7系统、Python 3.9.1,DELL G3电脑。

shodan模块安装:

pip install shodan

常用函数:

shodan.Shodan(key)
Shodan.ports()
Shodan.services()

实例应用:

import shodan   
try:
    results=api.search('apache')    
    print(results)
    print("Results found:%s"%results['total'])
    for result in results['matches']:
        print(result['ip_str'])

 上述为大家介绍的就是关于shodan模块最主要的用法,便于大家掌握了解,基本上都整理出来了,感兴趣的小伙伴可以多尝试了解下哦~

关注

关注公众号,随时随地在线学习

本教程部分素材来源于网络,版权问题联系站长!

底部广告图