Shodan and Censys
Attack Chain Position
graph LR
A[Reconnaissance] --> B[Passive Recon]
B --> C[Shodan / Censys]
C --> D[Active Recon]
D --> E[Service Detection]
E --> F[Vulnerability Research]
F --> G[Exploitation]
style C fill:#f9d56e,stroke:#c79632,stroke-width:3px
Where we are: Shodan and Censys provide passive intelligence about internet-exposed assets. This data supplements active reconnaissance and can reveal information that active scanning might miss.
Shodan Deep Dive
What is Shodan?
Shodan is the world’s largest search engine for Internet-connected devices. It continuously scans the entire IPv4 address space, collecting banners, headers, and metadata from exposed services.
Key Features
| Feature | Description |
|---|---|
| Internet-wide Scanning | Continuous scanning of all IPv4 addresses |
| Service Banners | Collects banners from open ports |
| HTTP Headers | Captures web server headers and content |
| Certificate Data | Stores TLS/SSL certificate information |
| Geolocation | Provides location data for devices |
| Vulnerability Database | Maps known vulnerabilities to devices |
| Historical Data | Tracks changes over time |
| API Access | Programmatic access to all data |
Shodan Use Cases
| Use Case | Description | Example |
|---|---|---|
| Attack Surface Discovery | Find all internet-exposed assets | org:"Company Name" |
| **Technology Search for specific services | apache 2.4.49 |
|
| Vulnerability Hunting | Find vulnerable services | cve:CVE-2021-41773 |
| Competitor Analysis | Analyze competitor infrastructure | org:"Competitor" |
| IoT Research | Discover exposed IoT devices | product:"Hikvision" |
| Certificate Monitoring | Track certificate changes | ssl.cert.subject.cn:"example.com" |
| Port Monitoring | Monitor specific ports | port:22 |
| Geolocation Search | Find devices in specific locations | city:"New York" |
Shodan CLI Installation and Configuration
Installation
# Install via pip
pip install shodan
# Install via pip3
pip3 install shodan
# Install system-wide
sudo pip3 install shodan
Configuration
# Initialize Shodan CLI
shodan init YOUR_API_KEY
# Verify configuration
shodan config
# Check account status
shodan account
Getting an API Key
- Sign up at shodan.io
- Navigate to Account → API Key
- Copy your API key
- Configure with
shodan init <API_KEY>
Shodan Web Interface
Basic Search
# Search for a specific service
apache
# Search for a specific version
apache 2.4.49
# Search by organization
org:"Example Corp"
# Search by IP
10.10.10.10
# Search by domain
hostname:"example.com"
Advanced Search Syntax
# Combine multiple filters
apache 2.4.49 org:"Example Corp" country:"US"
# Search for vulnerable services
cve:CVE-2021-41773
# Search for specific ports
port:22,80,443,3389
# Search for specific products
product:"Microsoft IIS"
Shodan Search Filters Reference
Complete Filter Reference Table
| Filter | Description | Example |
|---|---|---|
port: |
Filter by port number | port:22 |
product: |
Filter by product name | product:"Apache" |
title: |
Filter by HTTP title | title:"Dashboard" |
org: |
Filter by organization | org:"Example Corp" |
country: |
Filter by country code | country:"US" |
city: |
Filter by city name | city:"New York" |
region: |
Filter by region | region:"California" |
hostname: |
Filter by hostname | hostname:"example.com" |
os: |
Filter by operating system | os:"Ubuntu" |
net: |
Filter by network (CIDR) | net:"192.168.1.0/24" |
after: |
Filter by scan date (after) | after:2024-01-01 |
before: |
Filter by scan date (before) | before:2024-12-31 |
http.favicon.hash: |
Filter by favicon hash | http.favicon.hash:-123456789 |
ssl.cert.subject.cn: |
Filter by SSL cert CN | ssl.cert.subject.cn:"example.com" |
cve: |
Filter by CVE | cve:CVE-2021-41773 |
vuln: |
Filter by vulnerability | vuln:"CVE-2021-41773" |
has_screenshot: |
Filter by screenshot availability | has_screenshot:true |
tags: |
Filter by tags | tags:"iot" |
data: |
Filter by banner data | data:"Server: Apache" |
html: |
Filter by HTML content | html:"login" |
server: |
Filter by server header | server:"nginx" |
hash: |
Filter by SSL cert hash | hash:"abc123..." |
asn: |
Filter by ASN | asn:"15169" |
gps: |
Filter by GPS coordinates | gps:40.7128,-74.0060 |
distance: |
Filter by distance | gps:40.7128,-74.0060,distance:100 |
latitude: |
Filter by latitude | latitude:40.7128 |
longitude: |
Filter by longitude | longitude:-74.0060 |
postal: |
Filter by postal code | postal:"10001" |
isp: |
Filter by ISP | isp:"Google LLC" |
Filter Combination Examples
# Find all Apache 2.4.49 servers in the US
apache 2.4.49 country:"US"
# Find all RDP servers in a specific organization
port:3389 org:"Example Corp"
# Find all devices with a specific CVE
cve:CVE-2021-41773
# Find all WordPress sites
title:"WordPress"
# Find all devices with a specific SSL certificate
ssl.cert.subject.cn:"example.com"
# Find all IoT devices in a city
product:"Hikvision" city:"New York"
# Find all devices scanned after a specific date
apache after:2024-01-01
# Find all devices with a specific favicon
http.favicon.hash:-123456789
# Find all devices with login pages
html:"login" port:80,443,8080,8443
Shodan CLI Commands
Host Information
# Get host details
shodan init YOUR_API_KEY
shodan info
# Get specific host information
shodan host 10.10.10.10
# Get host information in JSON format
shodan host --fields ip_str,port,org,os,product,version 10.10.10.10
# Get host information with specific fields
shodan host --fields ip_str,port,org,os,product,version,location.city,location.country_name 10.10.10.10
# Get all data for a host
shodan host --fields * 10.10.10.10
Search Commands
# Basic search
shodan search "apache"
# Search with limit
shodan search --limit 20 "apache 2.4.49"
# Search with specific fields
shodan search --fields ip_str,port,org,os,product,version --limit 50 "apache"
# Search and save to file
shodan search --fields ip_str,port,org,os,product,version --limit 100 "apache" > apache_results.txt
# Search with JSON output
shodan search --fields ip_str,port,org,os,product,version --json "apache" > apache_results.json
# Count results without downloading
shodan count "apache 2.4.49"
Download and Convert
# Download search results
shodan download apache_results "apache 2.4.49"
# Convert downloaded data to CSV
shodan convert apache_results.jsonl -f ip_str,port,org,os,product,version -o apache_results.csv
# Convert to specific format
shodan convert apache_results.jsonl -f ip_str,port,org,os,product,version --csv > apache_results.csv
# View downloaded data
shodan view apache_results.jsonl
Organization and Domain
# Get organization information
shodan org "Example Corp"
# Get organization data
shodan org --limit 50 "Example Corp"
# Get domain information
shodan domain example.com
# Get domain data with specific fields
shodan domain --fields ip_str,port,org,os,product,version example.com
Monitoring and Alerts
# Create an alert
shodan alert create "my-alert" "org:Example Corp port:22"
# List alerts
shodan alert list
# Get alert details
shodan alert get my-alert
# Delete an alert
shodan alert delete my-alert
# Get scan data for an alert
shodan alert data my-alert
Screenshots
# Get screenshot of a host
shodan screenshot 10.10.10.10
# Save screenshot to file
shodan screenshot 10.10.10.10 -f screenshot.png
Shodan API Usage
Python API Examples
import shodan
# Initialize API
API_KEY = "YOUR_API_KEY"
api = shodan.Shodan(API_KEY)
# Get host information
try:
host = api.host('10.10.10.10')
print(f"IP: {host['ip_str']}")
print(f"Org: {host.get('org', 'N/A')}")
print(f"OS: {host.get('os', 'N/A')}")
print(f"Ports: {host['ports']}")
for port in host['ports']:
print(f" Port {port['port']}: {port.get('product', 'Unknown')} {port.get('version', '')}")
except shodan.APIError as e:
print(f"Error: {e}")
# Search for services
try:
results = api.search('apache 2.4.49')
print(f"Total results: {results['total']}")
for result in results['matches']:
print(f"IP: {result['ip_str']}, Port: {result['port']}, Org: {result.get('org', 'N/A')}")
except shodan.APIError as e:
print(f"Error: {e}")
# Search with pagination
def search_all(query, api_key, limit=10000):
api = shodan.Shodan(api_key)
results = []
page = 1
while True:
try:
data = api.search(query, page=page, limit=100)
results.extend(data['matches'])
if len(results) >= data['total'] or len(results) >= limit:
break
page += 1
except shodan.APIError as e:
print(f"Error: {e}")
break
return results
# Usage
all_results = search_all('apache 2.4.49', API_KEY, limit=1000)
print(f"Found {len(all_results)} results")
Vulnerability Search via API
import shodan
API_KEY = "YOUR_API_KEY"
api = shodan.Shodan(API_KEY)
# Search for devices with a specific CVE
try:
results = api.search('cve:CVE-2021-41773')
print(f"Devices with CVE-2021-41773: {results['total']}")
for result in results['matches'][:10]:
print(f"IP: {result['ip_str']}, Port: {result['port']}, Org: {result.get('org', 'N/A')}")
print(f" Data: {result.get('data', '')[:100]}")
except shodan.APIError as e:
print(f"Error: {e}")
# Get vulnerability details
try:
vuln = api.vulns('CVE-2021-41773')
print(f"CVE: {vuln['id']}")
print(f"Title: {vuln.get('summary', 'N/A')}")
print(f"Devices affected: {vuln.get('count', 0)}")
except shodan.APIError as e:
print(f"Error: {e}")
Censys Deep Dive
What is Censys?
Censys is an internet scanning platform similar to Shodan, but with some key differences. It was created by researchers from the University of Maryland and focuses on comprehensive internet-wide scanning.
Key Features
| Feature | Description |
|---|---|
| IPv4 and IPv6 | Comprehensive IPv6 coverage |
| Certificate Monitoring | Detailed SSL/TLS certificate tracking |
| Host Scanning | Regular scanning of all IP addresses |
| Service Detection | Identifies running services and versions |
| Vulnerability Data | Maps vulnerabilities to hosts |
| API Access | RESTful API for programmatic access |
| Historical Data | Tracks changes over time |
| Custom Scanning | Ability to run custom scans |
Shodan vs Censys Comparison
| Feature | Shodan | Censys |
|---|---|---|
| IPv4 Coverage | Excellent | Excellent |
| IPv6 Coverage | Limited | Excellent |
| Certificate Data | Good | Excellent |
| Search Interface | User-friendly | Technical |
| API Limits | Tiered by plan | Tiered by plan |
| Vulnerability Data | Good | Good |
| Historical Data | Available | Available |
| Screenshot Feature | Yes | No |
| Custom Scanning | Limited | Yes |
| Pricing | Higher | Lower |
| Community | Larger | Smaller |
Censys CLI Installation
# Install via pip
pip install censys
# Install via pip3
pip3 install censys
# Configure Censys CLI
censys config
# Enter API ID and Secret when prompted
Censys Host Search
# Basic host search
censys hosts search "services.service_name:HTTP"
# Search with filters
censys hosts search "services.port:443 services.service_name:HTTPS"
# Search for specific software
censys hosts search "services.software:\"Apache\""
# Search by location
censys hosts search "location.country:US"
# Search by ASN
censys hosts search "autonomous_system.asn:15169"
# Get host details
censys hosts view 10.10.10.10
# Get host details in JSON
censys hosts view --json 10.10.10.10
Censys Certificate Search
# Search for certificates
censys certs search "subject.country:US"
# Search by organization
censys certs search "subject.organization:\"Example Corp\""
# Search by common name
censys certs search "subject.common_name:\"example.com\""
# Search for expired certificates
censys certs search "not_after<2024-01-01"
# Search for self-signed certificates
censys certs search "issuer.common_name=subject.common_name"
# Get certificate details
censys certs view CERTIFICATE_HASH
Censys IPv6 Coverage
# Search IPv6 hosts
censys hosts search "ipv6:true services.port:443"
# Search for IPv6-only hosts
censys hosts search "ipv6:true ipv4:false"
# Compare IPv4 and IPv6 coverage
censys hosts search "services.port:443" --view-fields ip,ipv6
Censys API Usage
Python API Examples
from censys.search import CensysHosts, CensysCertificates
# Initialize API
HOSTS_API_ID = "YOUR_API_ID"
HOSTS_API_SECRET = "YOUR_API_SECRET"
# Hosts API
hosts = CensysHosts(HOSTS_API_ID, HOSTS_API_SECRET)
# Search for hosts
try:
results = hosts.search("services.service_name:HTTP")
for host in results:
print(f"IP: {host['ip']}")
print(f" Location: {host.get('location', {}).get('country', 'N/A')}")
print(f" Services: {len(host.get('services', []))}")
except Exception as e:
print(f"Error: {e}")
# Get host details
try:
host = hosts.view("10.10.10.10")
print(f"IP: {host['ip']}")
print(f"Location: {host.get('location', {})}")
print(f"Services: {len(host.get('services', []))}")
for service in host.get('services', []):
print(f" Port: {service.get('port', 'N/A')}")
print(f" Service: {service.get('service_name', 'N/A')}")
except Exception as e:
print(f"Error: {e}")
# Certificates API
certs = CensysCertificates(HOSTS_API_ID, HOSTS_API_SECRET)
# Search for certificates
try:
results = certs.search("subject.country:US")
for cert in results:
print(f"SHA-256: {cert['sha256_pool']}")
print(f" Subject: {cert.get('subject', {})}")
print(f" Issuer: {cert.get('issuer', {})}")
except Exception as e:
print(f"Error: {e}")
Internet Scan Data Interpretation
Understanding Scan Results
Shodan Host Data Structure
{
"ip_str": "10.10.10.10",
"port": 80,
"org": "Example Corp",
"os": "Ubuntu Linux",
"product": "Apache httpd",
"version": "2.4.49",
"location": {
"country_name": "United States",
"country_code": "US",
"city": "New York",
"latitude": 40.7128,
"longitude": -74.0060
},
"data": "HTTP/1.1 200 OK\r\nServer: Apache/2.4.49 (Ubuntu)\r\n...",
"http": {
"title": "Welcome to Apache",
"headers": {
"Server": "Apache/2.4.49 (Ubuntu)",
"X-Powered-By": "PHP/7.4.3"
}
},
"ssl": {
"cert": {
"subject": {
"CN": "example.com"
},
"issuer": {
"CN": "Let's Encrypt Authority X3"
}
}
},
"vulns": ["CVE-2021-41773"],
"tags": ["web", "http"],
"timestamp": "2024-01-15T10:30:00Z"
}
Censys Host Data Structure
{
"ip": "10.10.10.10",
"ipv6": null,
"location": {
"country": "US",
"country_name": "United States",
"latitude": 40.7128,
"longitude": -74.0060,
"postal_code": "10001",
"city": "New York"
},
"autonomous_system": {
"asn": 15169,
"description": "GOOGLE",
"bbox": null,
"country": "US",
"registry": "ARIN"
},
"services": [
{
"port": 80,
"service_name": "HTTP",
"transport_protocol": "TCP",
"software": [
{
"vendor": "Apache",
"product": "httpd",
"version": "2.4.49",
"other": {}
}
],
"http": {
"response": {
"status_code": 200,
"headers": {
"Server": "Apache/2.4.49 (Ubuntu)"
}
}
}
}
]
}
Data Quality Considerations
| Factor | Impact | Mitigation |
|---|---|---|
| Scan Frequency | Data may be outdated | Check timestamp, cross-reference |
| Firewall Blocking | Some services not detected | Combine with active scanning |
| Dynamic IPs | IP may have changed owners | Verify with other sources |
| False Positives | Incorrect service detection | Verify with manual testing |
| Incomplete Data | Not all ports scanned | Use as supplement, not replacement |
Attack Surface Monitoring
Setting Up Monitoring
Shodan Alerts
# Create alert for organization
shodan alert create "org-monitor" "org:Example Corp"
# Create alert for specific IP range
shodan alert create "ip-range-monitor" "net:192.168.1.0/24"
# Create alert for specific service
shodan alert create "ssh-monitor" "port:22 org:Example Corp"
# List all alerts
shodan alert list
# Get alert data
shodan alert data org-monitor
Censys Monitoring
from censys.search import CensysHosts
import json
# Set up monitoring for an organization
def monitor_org(api_id, api_secret, org_name):
hosts = CensysHosts(api_id, api_secret)
# Search for organization hosts
results = hosts.search(f"services.software.vendor:\"{org_name}\"")
hosts_list = []
for host in results:
hosts_list.append({
"ip": host["ip"],
"location": host.get("location", {}),
"services": len(host.get("services", [])),
"timestamp": host.get("last_updated_at", "")
})
return hosts_list
# Usage
monitored_hosts = monitor_org(API_ID, API_SECRET, "Example Corp")
print(f"Found {len(monitored_hosts)} hosts")
Monitoring Best Practices
| Practice | Description |
|---|---|
| Regular Scanning | Schedule regular scans of your attack surface |
| Alert Configuration | Set up alerts for new services or changes |
| Baseline Creation | Establish a baseline of known assets |
| Change Detection | Monitor for new or removed services |
| Vulnerability Tracking | Track newly discovered vulnerabilities |
| Certificate Monitoring | Monitor certificate expiration and changes |
| Compliance Checking | Ensure assets comply with security policies |
Using Shodan/Censys in OSCP Context
OSCP-Specific Considerations
Limitations in OSCP
| Limitation | Description |
|---|---|
| Internal Networks | Shodan/Censys only scan internet-exposed devices |
| Lab Networks | OSCP labs are on internal networks, not internet-facing |
| NAT/Proxy | Lab targets may be behind NAT |
| Scan Restrictions | Some lab environments block external scans |
When Shodan/Censys Help in OSCP
| Scenario | How It Helps |
|---|---|
| Pro Labs | Some Pro Labs have internet-exposed components |
| OSCP Exam | Rarely, but some targets may have external-facing services |
| Pre-Exam Practice | Practice with internet-exposed targets |
| Real-World Skills | Skills transfer to real-world engagements |
Practical OSCP Workflow
flowchart TD
A[Start Engagement] --> B{Target Internet-Facing?}
B -->|Yes| C[Shodan/Censys Recon]
B -->|No| D[Active Recon Only]
C --> E[Search by IP/Domain]
E --> F[Analyze Results]
F --> G[Identify Services]
G --> H[Check for Vulnerabilities]
H --> I[Correlate with Active Scan]
I --> J[Build Attack Plan]
D --> K[Nmap Scanning]
K --> J
Correlating Shodan Data with Active Recon
# Step 1: Shodan search
shodan host 10.10.10.10
# Step 2: Active Nmap scan
nmap -sV -O -p- 10.10.10.10
# Step 3: Compare results
# Shodan shows: Apache 2.4.49 on port 80
# Nmap shows: Apache 2.4.49 on port 80
# Correlation: Confirmed
# Step 4: Look for discrepancies
# Shodan may show ports that Nmap missed
# Nmap may show ports that Shodan missed
# Combine both for complete picture
Building a Correlation Script
import shodan
import subprocess
import json
API_KEY = "YOUR_API_KEY"
api = shodan.Shodan(API_KEY)
def correlate_recon(target_ip):
# Get Shodan data
try:
shodan_data = api.host(target_ip)
shodan_ports = set()
for port in shodan_data['ports']:
shodan_ports.add(port)
except Exception as e:
print(f"Shodan error: {e}")
shodan_ports = set()
# Get Nmap data
try:
result = subprocess.run(
['nmap', '-sV', '--top-ports', '1000', '-oG', '-', target_ip],
capture_output=True, text=True
)
nmap_ports = set()
for line in result.stdout.split('\n'):
if '/open/' in line:
port = line.split('/')[0].strip()
nmap_ports.add(int(port))
except Exception as e:
print(f"Nmap error: {e}")
nmap_ports = set()
# Compare
only_shodan = shodan_ports - nmap_ports
only_nmap = nmap_ports - shodan_ports
both = shodan_ports & nmap_ports
print(f"Ports found by both: {len(both)}")
print(f"Ports only in Shodan: {only_shodan}")
print(f"Ports only in Nmap: {only_nmap}")
return {
"both": both,
"only_shodan": only_shodan,
"only_nmap": only_nmap
}
# Usage
correlate_recon("10.10.10.10")
Free vs Paid Features
Shodan Pricing Comparison
| Feature | Free | OTP ($17.91/mo) | Elite ($36.67/mo) |
|---|---|---|---|
| API Queries/Day | 50 | 200 | 1,000 |
| Search Results | 20 | 100 | 200 |
| Downloads/Day | 0 | 100 | 1,000 |
| Alerts | 0 | 1 | 5 |
| Screenshots | Limited | Yes | Yes |
| Vulns API | No | Yes | Yes |
| Host Metadata | Limited | Full | Full |
| Historical Data | No | Yes | Yes |
Censys Pricing Comparison
| Feature | Free | Basic ($75/mo) | Premium ($300/mo) |
|---|---|---|---|
| API Queries/Day | 100 | 1,000 | 10,000 |
| Host Records/Day | 100 | 1,000 | 10,000 |
| Cert Records/Day | 100 | 1,000 | 10,000 |
| IPv6 Data | Yes | Yes | Yes |
| Historical Data | Limited | Yes | Yes |
| Custom Scanning | No | No | Yes |
| Support | Community | Priority |
Free Tier Strategies
- Use free tier for initial reconnaissance: Get basic information before committing to paid plans
- Combine free tiers: Use both Shodan and Censys free tiers for broader coverage
- Focus on high-value queries: Use limited queries for the most important targets
- Cache results: Save results locally to avoid repeated queries
- Use web interface: Web interface has different limits than API
Building Custom Shodan Queries
Query Building Framework
Step 1: Define Your Goal
| Goal | Query Template |
|---|---|
| Find all Apache servers | apache |
| Find vulnerable Apache | apache 2.4.49 |
| Find Apache in organization | apache org:"Example Corp" |
| Find Apache in country | apache country:"US" |
| Find Apache with CVE | apache cve:CVE-2021-41773 |
Step 2: Add Filters
# Start with base query
apache
# Add version filter
apache 2.4.49
# Add location filter
apache 2.4.49 country:"US"
# Add organization filter
apache 2.4.49 org:"Example Corp"
# Add port filter
apache 2.4.49 port:80,443,8080
# Add time filter
apache 2.4.49 after:2024-01-01
Step 3: Refine Results
# Add title filter
apache 2.4.49 title:"Dashboard"
# Add HTML content filter
apache 2.4.49 html:"login"
# Add favicon filter
apache 2.4.49 http.favicon.hash:-123456789
# Add SSL filter
apache 2.4.49 ssl.cert.subject.cn:"example.com"
Advanced Query Examples
# Find all devices with exposed databases
product:"MySQL" OR product:"MongoDB" OR product:"Redis" OR product:"PostgreSQL"
# Find all devices with default credentials
title:"Default Login" OR title:"Admin Login" OR html:"default password"
# Find all IoT devices
product:"Hikvision" OR product:"Dahua" OR product:"Axis" OR product:"Foscam"
# Find all devices with exposed panels
title:"cPanel" OR title:"Plesk" OR title:"Webmin" OR title:"phpMyAdmin"
# Find all devices with specific CVEs
cve:CVE-2021-41773 OR cve:CVE-2021-44228 OR cve:CVE-2023-44487
# Find all devices with expired certificates
ssl.cert.not_after<2024-01-01
# Find all devices with self-signed certificates
ssl.cert.issuer.cn=ssl.cert.subject.cn
OSCP Exam Tips
Shodan/Censys Tips
-
Know the limitations: Shodan/Censys only work for internet-exposed targets. OSCP labs are typically internal.
-
Practice with free tiers: Get comfortable with the tools before the exam.
-
Learn the query syntax: Efficient queries save time and API credits.
-
Cross-reference with active scans: Always verify Shodan/Censys data with active scanning.
-
Document findings: Record all Shodan/Censys findings in your notes.
-
Use for Pro Labs: Pro Labs may have internet-exposed components where Shodan/Censys shine.
-
Check for CVEs: Use the vulnerability search feature to quickly identify known vulnerabilities.
-
Monitor for changes: Set up alerts for targets you’re monitoring.
-
Combine with other tools: Use Shodan/Censys data as input for other tools.
-
Understand data freshness: Check timestamps to ensure data is current.
Time Management
| Activity | Recommended Time |
|---|---|
| Initial Shodan/Censys search | 5-10 minutes |
| Result analysis | 10-15 minutes |
| Vulnerability checking | 5-10 minutes |
| Correlation with active scans | 5-10 minutes |
| Total | 25-45 minutes |
Common Pitfalls
- Assuming all data is current: Check timestamps
- Trusting data blindly: Always verify with active scanning
- Ignoring internal targets: Shodan/Censys won’t help with internal networks
- Over-relying on free tiers: Free tiers have limited functionality
- Not saving results: API credits are limited, save results locally
Summary
Shodan and Censys are powerful passive reconnaissance tools that provide valuable intelligence about internet-exposed assets. While their direct applicability to OSCP labs is limited (due to internal networks), they are essential tools for:
- Real-world engagements where targets are internet-facing
- Pro Labs that may have external components
- Building reconnaissance skills that transfer to other contexts
- Attack surface monitoring for ongoing security assessments
Master both platforms, understand their strengths and limitations, and learn to correlate their data with active reconnaissance results for comprehensive intelligence gathering.