-
Notifications
You must be signed in to change notification settings - Fork 0
API Keys
Configure API keys to unlock the full potential of DomainRaptor.
DomainRaptor integrates with multiple security services. While basic functionality works without API keys (using crt.sh and HackerTarget), configuring them enables:
- More data sources
- Host/service enrichment
- CVE correlation
- Better accuracy
| Service | Required | Free Tier | Features |
|---|---|---|---|
| Shodan | Optional | ✓ 100/month | Port scanning, service detection, CVE lookup |
| ZoomEye | Optional | ✓ Subdomain free | Subdomain enumeration (host search paid) |
| Censys (PAT) | Optional | ✓ IP lookup free | Direct IP lookup (search paid) |
| VirusTotal | Optional | ✓ 500/day | Malware analysis, URL reputation |
| NVD | Optional | ✓ | CVE enrichment with descriptions, CVSS scores |
| CISA KEV | ❌ Not needed | ✓ Public catalogue | Known Exploited Vulnerabilities flag |
| EPSS (FIRST.org) | ❌ Not needed | ✓ Public API | Exploit probability score + percentile |
| Exploit-DB | ❌ Not needed | ✓ Public mirror | Public proof-of-concept references |
| URLScan.io | ❌ Optional | ✓ Public scans | Historical scan metadata for a domain |
💡 The exploit intelligence sources (CISA KEV, EPSS, Exploit-DB) used by
assess exploitsandassess vulns --exploitsare all free and require no API key. They work out of the box.
- Go to https://account.shodan.io/
- Create a free account
- Navigate to Account → API Key
- Copy your API key
Free tier includes:
- 100 query credits/month
- Basic search functionality
- Host lookups
domainraptor config set SHODAN_API_KEY AbCdEf123456789GhIjKlMnOpQrStUvWx- Go to https://www.zoomeye.ai/
- Create a free account
- Navigate to Profile → API Key
- Copy your API key
Free tier includes:
- Subdomain discovery (unlimited)
- 3000 credits/month for general searches
- Host search requires paid credits
domainraptor config set ZOOMEYE_API_KEY 366C744C-52F4-6AA41-f5CF-1cf8603ff45
⚠️ Note: ZoomEye usesapi.zoomeye.ai(international endpoint). The.orgendpoint returns 403 for international users.
DomainRaptor uses the Censys Platform API v3 with Personal Access Tokens (PAT).
- Go to https://platform.censys.io/settings/api
- Create a free account
- Generate a Personal Access Token
- Copy the token (format:
censys_<prefix>_<secret>)
Free tier includes:
- Direct IP lookup (
censys-host <ip>) - FREE - Host/certificate search - Requires subscription
domainraptor config set CENSYS_API_TOKEN censys_ffgeRyx8_BrN5ne8WzXvTKCpCMSVDAiyY💡 Tip: Use
domainraptor discover censys-host 8.8.8.8for free IP lookups.
- Go to https://www.virustotal.com/gui/join-us
- Create a free account
- Navigate to your profile → API Key
- Copy your API key
Free tier includes:
- 500 requests/day
- 4 requests/minute
- Public reports only
domainraptor config set VIRUSTOTAL_API_KEY a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0- Go to https://nvd.nist.gov/developers/request-an-api-key
- Request a free API key
- Receive key via email
Without API key:
- ~5 requests per 30 seconds
- Basic CVE lookup
With API key:
- ~50 requests per 30 seconds (10x faster)
- Same features, higher throughput
domainraptor config set NVD_API_KEY your_nvd_api_key_here💡 Tip: NVD enrichment is used by
domainraptor assess list --enrichto fetch official CVE descriptions and CVSS scores.
# Set individual keys
domainraptor config set SHODAN_API_KEY your_key_here
domainraptor config set ZOOMEYE_API_KEY your_key_here
domainraptor config set CENSYS_API_TOKEN your_pat_token_here
domainraptor config set VIRUSTOTAL_API_KEY your_key_heredomainraptor config initFollow the prompts to enter your API keys.
export SHODAN_API_KEY="your_key_here"
export ZOOMEYE_API_KEY="your_key_here"
export CENSYS_API_TOKEN="censys_xxx_yyy"
export VIRUSTOTAL_API_KEY="your_key_here"Add to shell profile for persistence:
# ~/.bashrc or ~/.zshrc
export SHODAN_API_KEY="AbCdEf123456789GhIjKlMnOpQrStUvWx"
export ZOOMEYE_API_KEY="366C744C-52F4-6AA41-f5CF-1cf8603ff45"
export CENSYS_API_TOKEN="censys_ffgeRyx8_BrN5ne8WzXvTKCpCMSVDAiyY"Edit ~/.domainraptor/.env:
SHODAN_API_KEY=AbCdEf123456789GhIjKlMnOpQrStUvWx
ZOOMEYE_API_KEY=366C744C-52F4-6AA41-f5CF-1cf8603ff45
CENSYS_API_TOKEN=censys_ffgeRyx8_BrN5ne8WzXvTKCpCMSVDAiyY
VIRUSTOTAL_API_KEY=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0
NVD_API_KEY=your_nvd_api_key_heredomainraptor config listOutput:
API Keys Configuration
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Service ┃ Key Name ┃ Status ┃ Free Tier ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Shodan │ SHODAN_API_KEY │ ✓ Configured │ 100 queries/month │
│ ZoomEye │ ZOOMEYE_API_KEY │ ✓ Configured │ Subdomain discovery free │
│ Censys (PAT) │ CENSYS_API_TOKEN │ ✓ Configured │ IP lookup free │
│ VirusTotal │ VIRUSTOTAL_API_KEY │ ✗ Not set │ 4 req/min, 500/day │
└───────────────┴────────────────────┴──────────────┴──────────────────────────────┘
# Test all keys
domainraptor config test
# Test specific key
domainraptor config test SHODAN_API_KEYOutput:
Testing API Keys:
SHODAN_API_KEY:
Status: ✓ Valid
Plan: Developer
Credits: 95/100
VIRUSTOTAL_API_KEY:
Status: ✓ Valid
Plan: Free
Quota: 487/500 (daily)
SECURITYTRAILS_API_KEY:
Status: ✗ Not configured
CENSYS_API_KEY:
Status: ✗ Not configured
| Feature | Available |
|---|---|
| Subdomain discovery (crt.sh) | ✓ |
| Subdomain discovery (HackerTarget) | ✓ |
| DNS enumeration | ✓ |
| WHOIS lookup | ✓ |
| SSL/TLS analysis | ✓ |
| HTTP header analysis | ✓ |
| Configuration assessment | ✓ |
| Feature | Available |
|---|---|
| Port scanning | ✓ |
| Service detection | ✓ |
| Banner grabbing | ✓ |
| CVE correlation | ✓ |
| Host information | ✓ |
| Feature | Available |
|---|---|
| URL reputation | ✓ |
| Domain reputation | ✓ |
| Subdomain enumeration | ✓ |
| Malware analysis | ✓ |
| Feature | Available |
|---|---|
| Extended subdomain enumeration | ✓ |
| Historical DNS records | ✓ |
| WHOIS history | ✓ |
| Associated domains | ✓ |
Use --free-only flag to run with only free data sources:
domainraptor --free-only discover -T example.comThis uses:
- crt.sh (Certificate Transparency)
- HackerTarget
- DNS enumeration
- WHOIS lookup
# Set restrictive permissions
chmod 600 ~/.domainraptor/.envAdd to .gitignore:
.env
*.env
.domainraptor/
# GitHub Actions
env:
SHODAN_API_KEY: ${{ secrets.SHODAN_API_KEY }}
VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}- Regenerate API keys periodically
- Immediately rotate if compromised
- Use separate keys for different environments
- Check API quotas regularly
- Set up alerts for unusual usage
- Review access logs when available
✗ SHODAN_API_KEY: Invalid (Error: Invalid API key)
Solution: Verify the key is correct and hasn't expired.
⚠ Rate limit exceeded for VIRUSTOTAL_API_KEY
Solution: Wait for rate limit reset or upgrade your plan.
✗ SHODAN_API_KEY: Connection error
Solution: Check internet connection and service status.
← Database Commands | Next: Output Formats →
DomainRaptor v0.2.0 | GitHub | Report Issue | MIT License