Skip to content

Commit

Permalink
Improved Censys and ZoomEye search queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Xewdy444 committed Feb 26, 2024
1 parent 8b18071 commit dfeada6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def main() -> None:

async with Censys(args.censys) as censys:
hosts = await censys.get_hosts(
"Netwave and services.extended_service_name: HTTP",
'services.http.response.headers.Server: "Netwave IP Camera"',
count=args.number,
service_filter=lambda service: service["extended_service_name"]
== "HTTP",
Expand All @@ -114,7 +114,9 @@ async def main() -> None:
logger.info("Retrieving hosts from ZoomEye...")

async with ZoomEye(args.zoomeye) as zoomeye:
hosts = await zoomeye.get_hosts("Netwave", count=args.number)
hosts = await zoomeye.get_hosts(
'app: "Netwave IP Camera"', count=args.number
)

if not hosts:
logger.error("Could not get any hosts from the specified source.")
Expand Down

0 comments on commit dfeada6

Please sign in to comment.