From 2b96dd46ab999a0ca8b6a97a638c07b95b9b5153 Mon Sep 17 00:00:00 2001 From: hmm Date: Mon, 25 Nov 2024 21:00:06 +0300 Subject: [PATCH] updated --- README.md | 2 +- exposor/feeds/shodan/shodan_feed.py | 5 +++-- exposor/feeds/zoomeye/zoomeye_feed.py | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c917f90..d6eef10 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Exposor is a contactless reconnaissance tool focused on technology detection acr ### Key Features - Easily configure API credentials and keep the intelligence files updated. - - Perform targeted searches by netblock or ISO-3166 country codes. + - Perform targeted searches by netblock, country code, or hostname. - Execute queries across multiple feeds with a unified syntax. - Extend intel capabilities by contributing new YAML files. - Identify exposed systems and potential vulnerabilities using CPEs or CVEs. diff --git a/exposor/feeds/shodan/shodan_feed.py b/exposor/feeds/shodan/shodan_feed.py index aeecd2e..f91b79a 100644 --- a/exposor/feeds/shodan/shodan_feed.py +++ b/exposor/feeds/shodan/shodan_feed.py @@ -56,10 +56,11 @@ def search(key, queries, args, technology): #print(matches_to_add) for banner in matches_to_add: domains = banner.get('domains', []) - for domain in domains: - counter+=1 + counter+=1 + for domain in domains: if counter>int(limit_result): break + counter+=1 banner_dic = { 'ip':banner.get('ip_str', None), 'domain': domain, diff --git a/exposor/feeds/zoomeye/zoomeye_feed.py b/exposor/feeds/zoomeye/zoomeye_feed.py index 59f7b0f..2e3d943 100644 --- a/exposor/feeds/zoomeye/zoomeye_feed.py +++ b/exposor/feeds/zoomeye/zoomeye_feed.py @@ -86,10 +86,11 @@ def search(key, queries, args, technology): matches_to_add = matches[:remaining] for banner in matches_to_add: ip_addresses = banner.get('ip', []) - for ip in ip_addresses: - counter+=1 + counter+=1 + for ip in ip_addresses: if counter > int(limit_result): break + counter+=1 banner_dic = { 'ip': ip, 'domain': banner.get('site', None),