• 技术文章 >Python技术 >Python基础教程

    Python中shodan模块是什么?

    十一十一2021-03-03 17:54:18原创3267

    本文教程操作环境: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模块最主要的用法,便于大家掌握了解,基本上都整理出来了,感兴趣的小伙伴可以多尝试了解下哦~

    专题推荐:shodan模块是什么
    品易云
    上一篇:如何使用python中schedule模块? 下一篇:如何使用python中的optionparser模块?

    相关文章推荐

    • python中base64模块是什么?• 如何使用python中schedule模块?

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网