Skip to content

Instantly share code, notes, and snippets.

@cyberanchor
Created June 2, 2025 16:48
Show Gist options
  • Select an option

  • Save cyberanchor/736978f90f5fe68e8956922a256f73d0 to your computer and use it in GitHub Desktop.

Select an option

Save cyberanchor/736978f90f5fe68e8956922a256f73d0 to your computer and use it in GitHub Desktop.
zoomeye_api

check profile

curl -X POST https://api.zoomeye.ai/v2/userinfo -H "API-KEY: API"

search ssh service

curl -X POST 'https://api.zoomeye.ai/v2/search' \
-H "API-KEY: API" \
-H 'content-type: application/json' \
-d '{"qbase64": "'$(echo -n 'service="ssh" && country="CN"' | base64)'", "page": 1, "pagesize": 10000, "fields": "ip,port,hostname,rdns,os,service,banner,version,device,country.name,city.name,asn,isp.name,organization.name,honeypot,primary_industry,sub_industry,update_time", "facets": "country,port,city"}' \
-o output.json
curl -X POST 'https://api.zoomeye.ai/v2/search' \
-H "API-KEY: API" \
-H 'Content-Type: application/json' \
-d '{"qbase64": "c2VydmljZT0ic3NoIiAmJiBjb3VudHJ5PSJCRyIK", "page": 6, "pagesize": 10000, "fields": "ip,port,hostname,rdns,os,service,banner,version,device,country.name,city.name,asn,isp.name,organization.name,honeypot,primary_industry,sub_industry,update_time", "facets": "country,port,city"}' \
-o output.json

convert json to txt

jq -r '.data[] | "\(.ip):\(.port) | \(.hostname // "") | \(.rdns // "") | \(.os // "") | \(.service // "") | \(.banner // "") | \(.version // "") | \(.device // "") | \(.["country.name"] // "") | \(.["city.name"] // "") | \(.asn // "") | \(.["isp.name"] // "") | \(.["organization.name"] // "") | \(.honeypot // "") | \(.primary_industry // "") | \(.sub_industry // "") | \(.update_time // "")"' output.json > output.txt
jq -r '.data[] | "\(.ip):\(.port) | \(.["country.name"]) | \(.["city.name"]) | \(.update_time)"' output.json > output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment