Skip to content

Commit

Permalink
updated feeds - Shodan and Zoomeye
Browse files Browse the repository at this point in the history
  • Loading branch information
abuyv committed Nov 26, 2024
1 parent 82ba787 commit f5d1d96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion exposor/feeds/shodan/shodan_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def search(key, queries, args, technology):
#print(matches_to_add)
for banner in matches_to_add:
domains = banner.get('domains', [])
counter+=1
if not domains:
counter+=1
for domain in domains:
if counter>int(limit_result):
break
Expand Down
3 changes: 2 additions & 1 deletion exposor/feeds/zoomeye/zoomeye_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def search(key, queries, args, technology):
matches_to_add = matches[:remaining]
for banner in matches_to_add:
ip_addresses = banner.get('ip', [])
counter+=1
if not ip_addresses:
counter+=1
for ip in ip_addresses:
if counter > int(limit_result):
break
Expand Down

0 comments on commit f5d1d96

Please sign in to comment.