How to Use Shodan in 2026 — Complete Guide for Ethical Hackers
If you work in cybersecurity, bug bounty hunting, or penetration testing, Shodan is one tool you absolutely must master in 2026. Called "the most dangerous search engine in the world", Shodan can reveal exposed servers, vulnerable devices, open databases, and misconfigured systems — all from your browser, completely legally.
In this complete guide, I'll walk you through everything you need to know about Shodan — from creating your free account to using advanced search filters like a professional penetration tester.
⚠️ Legal Disclaimer: Shodan indexes publicly available information. Using Shodan to view device information is legal. However, attempting to access, exploit, or attack any device you find — without explicit written permission — is illegal. Always use Shodan ethically and responsibly.
What is Shodan?
Shodan is a search engine — but instead of indexing websites like Google, it indexes internet-connected devices. Every day, Shodan scans billions of IP addresses across the internet and records what it finds: open ports, running services, device types, software versions, locations, and more.
This means you can use Shodan to find:
- Web servers running outdated software
- Databases exposed to the internet without passwords
- Webcams and security cameras with default credentials
- Industrial control systems (SCADA) connected online
- Routers and IoT devices with open admin panels
- Servers belonging to a specific company or organization
For ethical hackers and penetration testers, Shodan is like having a map of every unlocked door on the internet.
How Shodan Works
Shodan works by continuously scanning the internet using a process called banner grabbing. Here's the simple explanation:
- Shodan sends connection requests to IP addresses across the internet
- When a device responds, it returns a "banner" — a block of text containing information about the service running on that port
- Shodan stores and indexes this banner data
- You search this indexed data using filters and keywords
The result is a massive, searchable database of every publicly accessible device on the internet — updated continuously.
Shodan Free vs Paid — What's the Difference?
| Feature | Free Account | Paid ($49/month) |
|---|---|---|
| Basic searches | ✅ Yes | ✅ Yes |
| Results per search | 2 pages (20 results) | Unlimited |
| Filters (port, country etc) | ✅ Yes | ✅ Yes |
| API access | Limited | Full access |
| Shodan Monitor | ❌ No | ✅ Yes |
| Export results | ❌ No | ✅ Yes |
| Vulnerability search (vuln:) | ❌ No | ✅ Yes |
| Best for | Learning & basic recon | Professional pentesting |
Good news: The free account is more than enough to get started and do real reconnaissance work. You can upgrade later when you need more power.
Step 1: Create Your Free Shodan Account
- Go to shodan.io
- Click "Login" in the top right corner
- Click "Register" and create a free account
- Verify your email address
- Log in — you now have access to Shodan's full search interface
Once logged in, you'll see the main search bar. This is where all the magic happens.
Step 2: Understanding Shodan Search Results
When you search for something on Shodan, each result contains:
- IP Address — the device's public IP
- Port — which port is open (80, 443, 22, 3306 etc)
- Organization — who owns the IP (ISP or company)
- Country/City — physical location of the device
- Banner — the raw service response showing software, version, and configuration
- Hostnames — domain names associated with the IP
- CVEs — known vulnerabilities (paid accounts)
Reading banners is a skill — the more you practice, the faster you spot interesting information.
Step 3: Basic Shodan Searches
Let's start with simple searches. Just type these directly into the Shodan search bar:
Search by keyword:
apache
nginx
IIS
"default password"
"admin panel"
"login page"
Search for specific software:
product:"Apache httpd"
product:"nginx"
product:"OpenSSH"
product:"MySQL"
product:"MongoDB"
Search by port number:
port:22 (SSH servers)
port:80 (HTTP web servers)
port:443 (HTTPS web servers)
port:3306 (MySQL databases)
port:27017 (MongoDB databases)
port:6379 (Redis databases)
port:9200 (Elasticsearch)
port:21 (FTP servers)
port:3389 (RDP - Remote Desktop)
Step 4: Advanced Shodan Filters
This is where Shodan becomes extremely powerful. Filters let you narrow down results to exactly what you're looking for.
Filter by country:
country:PK (Pakistan)
country:US (United States)
country:IN (India)
country:GB (United Kingdom)
country:DE (Germany)
Filter by city:
city:"Karachi"
city:"London"
city:"New York"
Filter by organization:
org:"Google"
org:"Amazon"
org:"Microsoft"
org:"Pakistan Telecom"
Filter by hostname/domain:
hostname:example.com
hostname:.gov.pk
hostname:.edu.pk
Filter by operating system:
os:"Windows Server 2019"
os:"Linux"
os:"Ubuntu"
os:"CentOS"
Filter by software version:
version:"2.4.49" (specific Apache version)
version:"5.7.32" (specific MySQL version)
Step 5: Powerful Shodan Dorks for Ethical Hackers
These are the most useful Shodan search queries for penetration testing and bug bounty reconnaissance:
Find exposed databases:
"MongoDB Server Information" port:27017
product:"Elastic" port:9200 "cluster_name"
product:"Redis" port:6379
product:"MySQL" port:3306
Find exposed admin panels:
http.title:"Admin Panel"
http.title:"Dashboard" http.component:"phpmyadmin"
http.title:"Webmin"
http.title:"cPanel"
http.title:"Plesk"
Find webcams and cameras:
product:"Hikvision IP Camera"
http.title:"Network Camera"
product:"webcamXP"
Find default credentials pages:
"default password" http.title:"Router"
"Set-Cookie: PHPSESSID" http.title:"Login"
Find exposed RDP (Remote Desktop):
port:3389 os:"Windows"
port:3389 country:PK
Find FTP servers allowing anonymous login:
port:21 "230 Login successful" "Anonymous"
Find servers by specific CVE vulnerability (paid):
vuln:CVE-2021-44228 (Log4Shell)
vuln:CVE-2021-34527 (PrintNightmare)
vuln:CVE-2019-0708 (BlueKeep)
Find Cisco devices:
"Cisco IOS" port:23
product:"Cisco" country:PK
Step 6: Using Shodan for Bug Bounty Reconnaissance
Here's how professional bug bounty hunters use Shodan during a real recon phase:
Phase 1: Find all assets of a target company
org:"Target Company Name"
hostname:targetcompany.com
This shows you every server, service, and device the company has exposed to the internet.
Phase 2: Find subdomains and services
hostname:.targetcompany.com
The dot before the domain finds all subdomains — you might discover dev.targetcompany.com, staging.targetcompany.com, or admin.targetcompany.com that aren't listed on their main website.
Phase 3: Check for outdated software
org:"Target Company" product:"Apache httpd"
org:"Target Company" product:"nginx"
Look at the version numbers in the results. Old versions often have known CVEs that count as valid bug bounty findings.
Phase 4: Find exposed services that shouldn't be public
org:"Target Company" port:3306 (MySQL shouldn't be public)
org:"Target Company" port:27017 (MongoDB shouldn't be public)
org:"Target Company" port:6379 (Redis shouldn't be public)
org:"Target Company" port:3389 (RDP shouldn't be public)
Finding a database port exposed to the internet is often a valid bug bounty report even without exploiting it — it's a misconfiguration that should be fixed.
Step 7: Using the Shodan CLI (Command Line)
For advanced users, Shodan has a powerful command-line interface:
Install Shodan CLI:
pip install shodan
Initialize with your API key:
shodan init YOUR_API_KEY
Basic CLI commands:
# Search for Apache servers in Pakistan
shodan search "apache country:PK"
# Get info about a specific IP
shodan host 8.8.8.8
# Count results without showing them
shodan count "nginx port:443"
# Download results to a file
shodan download results "org:Microsoft"
# Check your own IP
shodan myip
# Scan a specific network (requires credits)
shodan scan submit 192.168.1.0/24
Step 8: Shodan Monitor — Protect Your Own Network
One of the most powerful features of Shodan (paid) is Shodan Monitor. It lets you continuously monitor your own IP ranges and get alerts when new services are exposed.
For IT administrators and security teams, this means:
- Get notified when a new port opens on your servers
- Detect when a database accidentally becomes publicly accessible
- See your network exactly the way attackers see it
- Get email alerts for new vulnerabilities on your systems
This is one of the best proactive security tools available for any organization.
Real World Use Cases
Use Case 1: Finding exposed MongoDB databases in Pakistan
"MongoDB Server Information" port:27017 country:PK
This search reveals MongoDB databases in Pakistan with no authentication. If you find one belonging to a company with a bug bounty program, reporting it could earn you a significant bounty.
Use Case 2: Checking if your own server is exposed
Search your own IP address or domain on Shodan
You'll see exactly what information attackers can gather about your server — ports, software versions, SSL certificates, and more. Fix anything that shouldn't be public.
Use Case 3: Finding outdated Apache servers
product:"Apache httpd" version:"2.4.49" country:PK
Apache 2.4.49 had a critical path traversal vulnerability (CVE-2021-41773). Searching for it finds servers that may still be unpatched and vulnerable.
Use Case 4: Discovering forgotten development servers
hostname:dev.targetcompany.com
hostname:staging.targetcompany.com
hostname:test.targetcompany.com
Development and staging servers often have weaker security than production. Finding them through Shodan is a common bug bounty technique.
Shodan Tips for Beginners
- Start simple — search for a technology you know (apache, nginx, IIS) and explore the results
- Use filters one at a time — add country, port, or org filters gradually to narrow results
- Read banners carefully — version numbers, error messages, and configuration details are gold
- Check the Maps tab — visualize where devices are located geographically
- Use the Explore tab — browse popular searches made by other Shodan users
- Save your searches — create a personal library of useful queries
- Check SSL certificates — they often reveal additional hostnames and subdomains
What NOT to Do with Shodan
- ❌ Never attempt to log into any device you find on Shodan without permission
- ❌ Never exploit vulnerabilities on systems you don't own or have written permission to test
- ❌ Never scan competitor networks without authorization — even passive queries can have legal implications
- ❌ Never use Shodan data to target individuals or organizations maliciously
- ❌ Never share sensitive findings publicly without responsible disclosure
Always remember: finding information on Shodan is legal. What you DO with that information determines whether your actions are legal or criminal.
Shodan vs Google — Key Differences
| Feature | Shodan | |
|---|---|---|
| Indexes | Web pages and content | Devices and services |
| Data type | HTML, text, images | Banners, ports, metadata |
| Best for | Finding information online | Finding exposed devices |
| Security use | Google Dorks | Device reconnaissance |
| Updates | Continuous web crawling | Regular internet scanning |
| Free to use | ✅ Yes | ✅ Yes (basic) |
Frequently Asked Questions
Q: Is Shodan legal to use?Yes. Shodan only indexes information that devices publicly broadcast on the internet. Viewing this information is legal, just like viewing a public webpage. What matters is what you do with the information — exploiting systems without permission is illegal.
Q: Do I need to pay for Shodan?No. The free account gives you access to basic searches and filters — more than enough for learning and basic reconnaissance. The paid plan ($49/month) adds unlimited results, API access, and vulnerability search.
Q: Can Shodan find my home network?Yes, if your devices have public IP addresses and open ports. Search your public IP on Shodan to see what's visible. Close any ports you don't need and use a firewall to protect your network.
Q: Is Shodan used by real hackers?Both ethical and malicious hackers use Shodan. Ethical hackers use it to find vulnerabilities before attackers do. Malicious hackers use it to find targets. This is exactly why security professionals need to learn how Shodan works — to defend against those who misuse it.
Q: What's the difference between Shodan and Censys?Both are internet scanning tools but with different strengths. Shodan is more widely used with a larger database and better filters for device types. Censys focuses more on SSL/TLS certificates and is often more up-to-date. Professional security researchers use both.
Q: Can I use Shodan for bug bounty hunting?Absolutely. Shodan is one of the first tools top bug bounty hunters use during reconnaissance. Finding exposed services, outdated software, or misconfigured databases belonging to a bug bounty target can result in valid, paid bug reports.
Shodan Cheat Sheet — Quick Reference
| Filter | Example | Purpose |
|---|---|---|
| port: | port:22 | Filter by port number |
| country: | country:PK | Filter by country |
| city: | city:"Karachi" | Filter by city |
| org: | org:"Google" | Filter by organization |
| hostname: | hostname:example.com | Filter by domain |
| product: | product:"Apache" | Filter by software |
| version: | version:"2.4.49" | Filter by version |
| os: | os:"Windows" | Filter by OS |
| http.title: | http.title:"Admin" | Filter by page title |
| vuln: | vuln:CVE-2021-44228 | Filter by CVE (paid) |
Final Thoughts
Shodan is one of the most powerful tools in any ethical hacker's arsenal. Whether you're doing bug bounty reconnaissance, penetration testing, or simply protecting your own network, understanding how to use Shodan effectively is a skill that will serve you throughout your cybersecurity career.
The key to mastering Shodan is practice. Start with simple searches, experiment with filters, and gradually build your query library. Within a few weeks of regular practice, you'll be able to gather professional-level intelligence on any target — faster than most beginners think possible.
Your action plan:
- Create your free Shodan account today at shodan.io
- Search your own IP address and domain to see what's exposed
- Try 5 different search filters from this guide
- Install the Shodan CLI and run your first command-line search
- Join a bug bounty program and use Shodan during your first recon
The internet has millions of exposed, misconfigured, and vulnerable devices. Shodan lets you find them — the question is whether you'll use that power to help secure them or walk away from the knowledge entirely.
As a cybersecurity professional, the answer should always be: find them, report them, fix them.
Found this Shodan guide useful? Share it with your security community and check out our other cybersecurity guides on CyberEye Research. Have a Shodan tip or search query you love? Drop it in the comments below!

Comments
Post a Comment