A comprehensive wrapper for the Shodan API using the official Python library.
```bash
pip install shodan
```
```bash
shodan init
```
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>
: 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 python3 {baseDir}/scripts/shodan_skill.py alert_info python3 {baseDir}/scripts/shodan_skill.py dns_domain python3 {baseDir}/scripts/shodan_skill.py dns_resolve 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 "" python3 {baseDir}/scripts/shodan_skill.py query_tagspython3 {baseDir}/scripts/shodan_skill.py notifier_listpython3 {baseDir}/scripts/shodan_skill.py exploit_search "" 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共 1 个版本