Skip to main content

🔍 SHODAN Cheat Sheet

A quick reference guide for leveraging Shodan, the search engine for Internet-connected devices.
Source: Ethical Hackers Academy


📌 What is Shodan?

Shodan is a publicly available search engine which scans the entire Internet for a limited number of services and enumerates any discovered services by their banner responses. It indexes that data and makes it searchable.

  • Indexed fields: data, IP, port, org, host, location.country_code
  • Pro tip: Use "View Raw Data" to see all banner info from discovered hosts.
  • Always wrap queries in quotes " " to avoid confusion and broken queries.

🌍 Physical Location Searches

Search TypeExample
Countrycountry:"US"
Citycity:"New York"
Statestate:"NY" or region:"NY"
Zip Codepostal:"92127"
Geo (GPS)geo:"40.759487,-73.978356"
Geo (radius)geo:"40.759487,-73.978356,2"

🖥️ IP Addresses & Subnets

TypeExample
Single IP Address52.179.197.205
Hostnamehostname:"microsoft.com"
Subnetnet:"52.179.197.0/24"
Portport:"21"
Serviceftp
Service on Specific Port"ftp" port:"21"
ISPisp:"Spectrum"
ASNASN:"AS8075"

⚙️ Operating Systems & Products

TypeExample
Operating Systemos:"Windows Server 2008" , os:"Linux 2.6.x"
Organization / Companyorg:"Microsoft"
Productproduct:"Cisco C3550 Router"
Versionproduct:"nginx" version:"1.8.1"
Categorycategory:"ics" , category:"malware"
Microsoft SMBsmb:"1" or smb:"2"
Microsoft Shared Foldersport:"445" "shares"

🌐 Web Applications

Search TypeExample
Page Titletitle:"Index of /ftp"
Page HTML Bodyhtml:"XML-RPC server accepts"
Tech Componentshttp.component:"php"
SSL/TLS Versionsssl.version:"ssl3" , ssl.version:"tlsv1.1"
Expired Certificatesssl.cert.expired:"true"

📅 Other Useful Queries

Search TypeExample
After Dateafter:"01/01/18"
Before Datebefore:"12/31/17"
Has Screenshothas_screenshot:"true"
Screenshot + Port 3389 (RDP)port:"3389" has_screenshot:"true"

⚠️ Danger: Exposed RDP often reveals Windows domains & user accounts.


🔒 Limited Access (Pro / Paid)

  • Vulnerability by CVE ID
    Example: vuln:"CVE-2017-0143"

  • Tags (Shodan-categorized data)
    Example: tag:"ics" or tag:"database"


✅ Quick Tips

  • Always use quotes around queries → "query"
  • Combine multiple filters for precision → "ftp" country:"US" port:"21"
  • Be mindful of legal boundaries — Shodan is for security research & awareness.

✨ Stay curious, stay ethical.