sihunh / yarateste

웹사이트 내 Yara Rule를 이용해 webshell을 탐지하는 툴입니다 및 사용자가 다운로드 받은 파일에 대해 검사를 진행합니다
0 stars 0 forks source link

shodan #3

Open sihunh opened 2 years ago

sihunh commented 2 years ago

from shodan import Shodan from shodan.cli.helpers import get_api_key

api = Shodan(get_api_key())

limit = 500 counter = 0 for banner in api.search_cursor('product:mongodb'):

Perform some custom manipulations or stream the results to a database

# For this example, I'll just print out the "data" property
print(banner['data'])

# Keep track of how many results have been downloaded so we don't use up all our query credits
counter += 1
if counter >= limit:
    break