本文教程操作环境: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模块最主要的用法,便于大家掌握了解,基本上都整理出来了,感兴趣的小伙伴可以多尝试了解下哦~
Copyright © 2019- hids.cn 版权所有 赣ICP备2024042780号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务