Overview
Shodan continuously scans the internet and indexes banners from servers, routers, webcams, databases and industrial systems. Instead of searching web pages, you search devices: find open ports, outdated software, exposed databases and misconfigured services by IP, hostname, port or organisation.
Defenders use it to discover their own forgotten exposures — the unpatched camera, the database without a password, the test server that was never taken down. A free account covers basic lookups; serious use with API access, historical data and network monitoring is paid. Every result includes the raw banner, so findings can be verified rather than taken on faith.
Key features
- Searchable index of banners from millions of devices
- Filters by port, country, organisation, product and vulnerability
- Exposes misconfigurations: open databases, default credentials, outdated builds
- REST API, CLI and integrations with Maltego, Nmap and Metasploit
- Monitoring and alerts for your own attack surface on paid plans
- Free tier for basic lookups; membership unlocks history and API credits
Install & first run
No installation needed for the web version.
- Create a free account on Shodan below.
- Try a starter query such as port:22 or an IP address.
- Open a result to see open ports, banners and known vulnerabilities.
For automation, install the CLI (pip install shodan) and add your API key with: shodan init YOUR_API_KEY.
Real-world example
Ask your network team for the company's public IP ranges, then search them on Shodan. You are looking for surprises: a printer admin page with default credentials, an old camera feed, a database port answering the whole internet, a test server someone forgot in 2021.
Each surprise becomes a ticket: restrict the port, patch the service, or take the host down. Re-run the same search quarterly — exposure drifts, and Shodan notices new devices before internal inventories do.
Common questions
Is Shodan free?
A free account covers basic lookups. Membership and API credits for automation, history and monitoring are paid.
Where does the data come from?
Shodan scans the internet continuously and indexes service banners. It shows you what was visible at scan time, not necessarily now.
Is using Shodan active scanning?
No - you are reading someone else's scan results, which keeps you passive. Verifying a hit against the host is what turns it active.
How do filters help?
org:, country:, product: and port: narrow the index to what matters. The free tier has limited filters and no historical data.
Related tools
Censys
Search internet-facing hosts and TLS certificates by IP, organisation or domain, then monitor what changes. Freemium web app and API.
dnstwist
Generate look-alike domains - typos, homoglyphs, bitsquatting and TLD swaps - and check which ones are already registered. Free, Python.
theHarvester
Gather emails, subdomains, hosts and employee names for a domain from 20+ public sources. Free, open source, command line.
Related reading: Shodan vs Censys: Internet Exposure Search Comparison · Shodan Search Filters Cheat Sheet: Attack Surface & OSINT
Keep exploring: browse every investigation type in the OSINT Hub.
Use OSINT tools responsibly — only investigate accounts, people or systems you have a legitimate reason to look into.