Command Reference
1. Hosts Presenting a Domain TLS Certificate
Discover origin servers and cloud hosts serving certificates for your domain.
ssl.cert.subject.cn:"example.com"
2. Filter by Organization & Autonomous System (ASN)
Scope searches to an enterprise netblock or ASN.
org:"Example Corp" asn:AS15169
3. Find Unauthenticated Administrative Dashboards
Locate exposed Grafana, Kibana, Jenkins, or Prometheus consoles.
ssl:"example.com" (http.title:"Grafana" OR http.title:"Jenkins" OR http.title:"Kibana")
4. Hunt Exposed Databases & Caches
Audit external IP space for Redis, MongoDB, Elasticsearch, or PostgreSQL ports.
ssl:"example.com" (port:6379 OR port:27017 OR port:9200 OR port:5432)
5. Remote Desktop & Management Services
Find internet-facing RDP, VNC, SMB, or IPMI management interfaces.
net:192.0.2.10/24 (port:3389 OR port:5900 OR port:445 OR port:623)
6. HTTP Status 200 Open Directory Listings
Spot web servers returning open directory indexes.
hostname:"example.com" http.title:"Index of /" http.status:200
7. Shodan CLI Host Summary Lookup
Inspect open ports, banners, and TLS certificates for a single IP via terminal.
shodan host 192.0.2.10
8. Shodan CLI Facet Statistics by Port
Summarize the most common open ports across a domain.
shodan stats --facets port,product hostname:"example.com"
Frequently Asked Questions
How does ssl.cert.subject.cn help find servers hidden behind Cloudflare?
When a web server is configured with an SSL certificate for example.com and its firewall fails to restrict port 443 to Cloudflare IP ranges only, Shodan indexes that certificate on the server public IP.
What is http.favicon.hash used for in Shodan?
Every web framework or custom app has a distinct MurmurHash3 value for its /favicon.ico file. Searching by http.favicon.hash finds servers running the exact same web application even when login titles are customized.