Install
openclaw skills install shodan-skillAdvanced Shodan API interactions including search, scan, alerts, and DNS.
openclaw skills install shodan-skillA comprehensive wrapper for the Shodan API using the official Python library.
Install dependencies:
pip install shodan
Configure API Key:
shodan init <YOUR_API_KEY>
Search with limits, pages, and facets (statistics).
python3 {baseDir}/scripts/shodan_skill.py search "<QUERY>" --limit <LIMIT> --page <PAGE> --facets <FACETS>
--facets: Comma separated, e.g., country:5,org:5 (top 5 countries and orgs).Get the total count of results without consuming query credits for full details.
python3 {baseDir}/scripts/shodan_skill.py count "<QUERY>" --facets <FACETS>
Get details for an IP.
python3 {baseDir}/scripts/shodan_skill.py host <IP> [--history] [--minify]
Request Shodan to scan a network (consumes Scan Credits).
python3 {baseDir}/scripts/shodan_skill.py scan <IPs>
<IPs>: Single IP, CIDR, or comma-separated list.Monitor your networks for exposure.
python3 {baseDir}/scripts/shodan_skill.py alert_listpython3 {baseDir}/scripts/shodan_skill.py alert_create <NAME> <IP_RANGE>python3 {baseDir}/scripts/shodan_skill.py alert_info <ALERT_ID>python3 {baseDir}/scripts/shodan_skill.py dns_domain <DOMAIN>python3 {baseDir}/scripts/shodan_skill.py dns_resolve <HOSTNAMES>python3 {baseDir}/scripts/shodan_skill.py profilepython3 {baseDir}/scripts/shodan_skill.py myippython3 {baseDir}/scripts/shodan_skill.py portspython3 {baseDir}/scripts/shodan_skill.py protocolspython3 {baseDir}/scripts/shodan_skill.py query_search "<TERM>"python3 {baseDir}/scripts/shodan_skill.py query_tagspython3 {baseDir}/scripts/shodan_skill.py notifier_listpython3 {baseDir}/scripts/shodan_skill.py exploit_search "<QUERY>"Stream realtime banners. Use --ports or --alert to filter.
python3 {baseDir}/scripts/shodan_skill.py stream --limit 10
Use count with facets to analyze trends.
python3 {baseDir}/scripts/shodan_skill.py count "apache" --facets "country"
python3 {baseDir}/scripts/shodan_skill.py filterspython3 {baseDir}/scripts/shodan_skill.py datapedia