本期给大家继续带来新的模块使用,可以作用于我们进行浏览器的使用,能够实现帮助我们扫描apache的主机以及返回的JSON格式的数据,有些小伙伴还会利用该模块,加上端口号,然后进行文件的写入,最后访问链接等等,好啦,如果上述描述里有大家所需要的方式使用,那就详细来学习下吧~
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模块最主要的用法,便于大家掌握了解,基本上都整理出来了,感兴趣的小伙伴可以多尝试了解下哦~