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'])