| name | searchsploit |
| description | Auth/lab ref: Offline CLI search tool for Exploit-DB. |
| license | MIT |
| compatibility | Bash; Linux/macOS; part of exploitdb package. |
| metadata | {"author":"AeonDave","version":"1.1"} |
SearchSploit
Offline Exploit-DB search — find public exploits by software name, version, or CVE.
Quick Start
apt install exploitdb
searchsploit apache 2.4
searchsploit CVE-2021-41773
searchsploit -e "remote code execution"
searchsploit -m 50383
Core Flags
| Flag | Purpose |
|---|
-t TERM | Search title only |
-e TERM | Exact match |
-m ID | Mirror/copy exploit file |
-p ID | Show full path |
-x ID | Examine exploit in pager |
--cve CVE | Search by CVE |
-w | Show web URL (exploitdb.com) |
--nmap FILE | Parse Nmap XML and find exploits |
-u | Update local database |
--id | Show EDB-ID |
Common Workflows
Find exploits from Nmap scan:
nmap -sV target.com -oX scan.xml
searchsploit --nmap scan.xml
Filter by type:
searchsploit -t "local" apache 2.4
searchsploit -t "remote" openssh
searchsploit -t "webapps" wordpress 5.8
JSON output (for scripting):
searchsploit --json apache 2.4 | jq '.RESULTS_EXPLOIT[] | {title: .Title, path: .Path}'
Examine and copy relevant exploit:
searchsploit -x 50383
searchsploit -m 50383
Show web URL for online reference:
searchsploit -w openssh 8.2
Update local DB:
searchsploit -u
Tips
- Exploit-DB path on Kali:
/usr/share/exploitdb/exploits/
- Cross-reference with online:
https://www.exploit-db.com/exploits/<EDB-ID>
- After
-m, inspect the exploit header for compilation/usage notes before running
- For Windows privesc exploits, prefer Metasploit modules over raw EDB scripts — they handle ASLR/DEP better
Resources
| File | When to load |
|---|
references/exploit-notes.md | Exploit compilation, modification, and testing notes |