Exploit-DB ↔ searchsploit — How They Relate

Ctrl+F: exploit-db.com · EDB-ID · /usr/share/exploitdb · -m · -x · 5092 · 50337

Short answer: Exploit-DB is the public website of known exploits. searchsploit is the command-line search tool that queries a local offline copy of that same database on Kali (/usr/share/exploitdb/).

Same exploit, three views:

ViewExample (EDB 5092)
Websitehttps://www.exploit-db.com/exploits/5092
Local path/usr/share/exploitdb/exploits/linux/local/5092.c
searchsploit ID5092 or path slug linux/local/5092

Full tool workflow → searchsploit


📌 One exploit — all three identifiers

When you run:

searchsploit -m linux/local/5092

You get output like:

Exploit: Linux Kernel 2.6.17 < 2.6.24.1 - 'vmsplice' Local Privilege Escalation (2)
URL: https://www.exploit-db.com/exploits/5092
Path: /usr/share/exploitdb/exploits/linux/local/5092.c
Codes: OSVDB-41853, CVE-2008-0600, CVE-2008-0010, CVE-2008-0009
Verified: True
File Type: C source, ASCII text
Copied to: /home/kali/boxes/5092.c
FieldMeaning
ExploitHuman-readable title on Exploit-DB
URLOnline page — read comments, alternate links, metadata
PathFile on Kali under /usr/share/exploitdb/exploits/
CodesLinked CVEs / OSVDB IDs
Copied toWhere -m (mirror) placed the file in your cwd

Path structure:

/usr/share/exploitdb/exploits/<platform>/<type>/<EDB-ID>.<ext>
 
Examples:
  linux/local/5092.c          → local privesc (Linux kernel)
  linux/webapps/50383.sh      → web app RCE
  windows/local/50337.ps1     → Windows local privesc (XAMPP)
Path segmentMeaning
linux / windows / multipleTarget OS
localLocal privilege escalation
remoteRemote exploit
webappsWeb application
NumberEDB-ID — same as URL /exploits/NNNNN

📌 Website ↔ CLI mapping

Google / browser                    Kali terminal
─────────────────                   ─────────────
exploit-db.com/exploits/5092   ←→   searchsploit -x 5092
                                    searchsploit -m 5092
                                    searchsploit -m linux/local/5092

exploit-db.com/search?q=xampp  ←→   searchsploit xampp
CVE-2020-11107 page            ←→   searchsploit --cve CVE-2020-11107
GoalCommand
Search by keywordsearchsploit "Apache 2.4.49"
Search by CVEsearchsploit --cve CVE-2020-11107
Read exploit in pagersearchsploit -x 5092
Copy exploit to ./searchsploit -m 5092
Local privesc onlysearchsploit -l ubuntu 4.4
Update local DBsudo searchsploit -u

📌 Install & update (Kali)

sudo apt install -y exploitdb
sudo searchsploit -u          # sync local mirror with Exploit-DB

Package exploitdb installs:

  • /usr/share/exploitdb/ — exploit files
  • /usr/bin/searchsploit — CLI front-end

Installation - Kali Setup


📌 Typical OSCP chain

1. nmap -sC -sV TARGET          → exact version string
2. searchsploit "SERVICE VER"   → EDB-ID + path
3. searchsploit -x EDB-ID       → read code, check LHOST/arch
4. searchsploit -m EDB-ID       → copy to cwd, compile/adapt
5. Run OR search msfconsole     → search exploit-db EDB-ID

Example — kernel privesc after uname -r:

searchsploit ubuntu 4.4.0
searchsploit -l linux kernel 4.4 --exclude="(DoS|PoC)"
searchsploit --cve CVE-2016-5195
searchsploit -m linux/local/40847
gcc 40847.c -o dirtycow -pthread

Example — Windows XAMPP privesc:

searchsploit xampp
searchsploit --cve CVE-2020-11107
searchsploit -m 50337
# → [[XAMPP - CVE-2020-11107 Privilege Escalation]]

📌 searchsploit vs Metasploit vs browser

MethodWhen
searchsploit -mNeed source to read/edit/compile; OSCP manual exploit
searchsploit -xQuick read without copying
exploit-db.com in browserComments, screenshots, alternate PoCs
msfconsole searchStable module exists — faster on exam
linux-exploit-suggesterKernel privesc — suggests CVEs → then searchsploit --cve
msfconsole -q
search exploit-db 50383
search type:exploit name:xampp

Msfconsole · MetaSploit


📌 EDB-ID quick reference (examples in this vault)

EDB-IDCVE / topicVault note
5092CVE-2008-0600 — Linux vmsplice kernel LPEKernel privesc — compile from -m linux/local/5092
46978lxc/LXD group privesclxc - LXD Privilege Escalation - EDB 46978
50337CVE-2020-11107 — XAMPP Control PanelXAMPP - CVE-2020-11107 Privilege Escalation

More version hits → Version CVEs


📌 When searchsploit returns nothing

Next stepTool
Google CVE + versionBrowser
PoC repotrickest/cveReference
Web enumNikto, Gobuster
Windows patcheswinExploitSuggester
Linux kernellinux-exploit-suggester