| Field | Detail |
|---|---|
| Summary | Look up public exploits/PoCs for a product and version |
| Category | Exploit lookup |
| Phase | vulnerability-analysis, exploitation |
| Interface | CLI (+ web) |
| Platform | Linux, Windows, macOS |
| Licence | Open source (GPL) |
| Docs | https://www.exploit-db.com/searchsploit |
| Related | Nmap, Nessus, Metasploit |
Exploit-DB is a large public archive of exploits and PoCs. Searchsploit is its offline CLI — a local copy of the whole database you can grep without internet, ideal for exam/lab environments (it's on Kali by default).
⚠️ Warning — Read before you run Public PoCs are unvetted third-party code. Some are broken, some are deliberately trojaned, many hardcode offsets/IPs. Read and understand every exploit before running it, run against authorised targets only, and prefer a lab snapshot you can revert. Run untrusted scripts from an isolated directory, never as root unless required.
Keep it current
searchsploit -u # update the local DB (git pull under the hood)
Searching
searchsploit apache 2.4 # AND of terms in title/path
searchsploit "vsftpd 2.3.4"
searchsploit windows smb remote
searchsploit -t oracle # search the TITLE only (fewer false hits)
searchsploit linux kernel 3.2 priv esc
Refine results:
searchsploit apache --exclude="/dos/" # drop DoS entries
searchsploit wordpress | grep -i auth # post-filter
searchsploit -w apache 2.4 # show exploit-db.com URLs
searchsploit --cve 2021-4034 # search by CVE
💡 Tip — Match the version, not just the product Pull the exact service/version from Nmap
-sVor Nessus, then search for that version. "apache" returns hundreds; "apache 2.4.49" returns the path-traversal/RCE you actually care about.
Inspecting & copying out
searchsploit -x 50383 # read an exploit in a pager (by EDB-ID)
searchsploit -x linux/remote/50383.c
searchsploit -m 50383 # MIRROR (copy) it to your current dir
searchsploit -p 50383 # show full path + copy path to clipboard
Each result row shows the path (under /usr/share/exploitdb/exploits/...) and the EDB-ID. Platform/type are encoded in the path: linux/remote/, windows/local/, php/webapps/, multiple/dos/.
Companion archives
Searchsploit also indexes:
searchsploit --nmap scan.xml # feed an Nmap XML -> auto-search found services
searchsploit -j apache 2.4 # JSON output (scripting)
Exploit-DB also hosts shellcodes and the GHDB (Google Hacking Database) of dork queries for OSINT.
Typical loop
- Nmap
-sV→ note exact product + version (and OS from-O). searchsploit <product> <version>→ shortlist.searchsploit -x <id>→ read it; understand what it does and its prerequisites.searchsploit -m <id>→ copy locally; editLHOST/RHOST/offsets.- Test in the lab; if it's a known CVE, check whether Metasploit has a vetted module (
search cve:<id>) — often safer and more reliable than a raw PoC.
Online equivalents (when you have internet)
- exploit-db.com — same data, web UI, verified/✓ badges.
- GitHub — search
CVE-2021-XXXX PoC(treat with extra caution). - Nuclei templates, Metasploit modules, vendor advisories — cross-reference before trusting any single PoC.
More tips
searchsploit --nmap scans/detailed.xml --exclude="/dos/" # auto-search services from an Nmap XML
searchsploit -t <product> <version> -w --exclude dos # title-only, show Exploit-DB URLs
searchsploit --cve 2021-4034 -j # by CVE, JSON output
# After mirroring, READ before running — note targets, offsets, prerequisites:
head -40 50383.c # author notes / usage / hardcoded values
gcc 50383.c -o exploit # many PoCs need a specific libc or arch — check first
Offline DB lives in /usr/share/exploitdb/; -u updates it, shellcodes are searchable with --id.
Kill-chain usage
Vulnerability analysis
searchsploit apache 2.4.49 # find a matching exploit
Exploitation
searchsploit -m <id> # read, then run the PoC in the lab
Where it fits
The bridge from "I know the version" to "here's a way in". Comes right after version detection (Nmap, Nessus) and feeds Metasploit or manual exploitation. On restricted exams where internet is blocked, the offline Searchsploit DB is your exploit library.