The Complete Guide to ExploitDB
ExploitDB is a public archive of exploits and proof-of-concept (PoC) code maintained by OffSec, the creators of Kali Linux. It is a foundational resource for penetration testers, vulnerability researchers, and anyone involved in authorized security testing. While the Exploit-DB website offers a searchable online database, its true power for security professionals lies in SearchSploit, a command-line utility that provides a fully searchable, offline copy of the entire exploit archive.
This guide will walk you through everything you need to know about using ExploitDB and SearchSploit effectively.
⚠️ Legal and Ethical Notice: The exploits and proof-of-concept code found in Exploit-DB are provided for authorized security testing, educational purposes, and use in controlled lab environments only. Always obtain explicit, written permission before testing any system you do not own. Unauthorized access or exploitation is illegal and unethical.
📦 Installation
SearchSploit is included by default in the standard GNOME build of Kali Linux. If you are using a different variant or another Linux distribution, here’s how to install it.
Kali Linux / Debian-Based Systems
sudo apt updatesudo apt install exploitdb
You may also want the related packages for papers and binary exploits:
sudo apt install exploitdb-papers exploitdb-bin-sploits
macOS (via Homebrew)
brew install exploitdb
Other Linux Distributions (from Git)
Clone the official repository and create a symbolic link so you can run searchsploit from anywhere:
git clone https://gitlab.com/exploit-database/exploitdb.git /opt/exploit-databaseln -sf /opt/exploit-database/searchsploit /usr/local/bin/searchsploit
Then, copy the resource file and edit it to point to the correct directory:
cp -n /opt/exploit-database/.searchsploit_rc ~/vim ~/.searchsploit_rc
Windows
There is no straightforward native install for Windows. The recommended approach is to use Kali Linux in a virtual machine, Docker, or WSL (Windows Subsystem for Linux).
🚀 Basic Usage
The basic syntax is:
searchsploit [options] term1 [term2] ... [termN]
SearchSploit uses an AND operator for multiple terms, meaning all terms must match for a result to be returned. The default search is case-insensitive and checks both exploit titles and file paths.
Simple Keyword Search
searchsploit apachesearchsploit windows 10searchsploit openssl 1.1.1
Example Output:
Exploit Title | PathApache HTTP Server 2.4.49 Path Traversal | exploits/linux/http/50383.py
Updating the Database
New exploits are added daily. Keep your local copy current:
sudo searchsploit -u
On Kali Linux, the package is updated weekly via apt; with Homebrew or Git, updates are daily at 05:05 UTC.
🎯 Command Reference
| Option | Description |
|---|---|
-h, --help | Show help screen |
-u, --update | Update local exploit database |
-e, --exact | Perform an exact & order match on exploit title |
-s, --strict | Disable fuzzy version matching |
-t, --title | Search only the exploit title (not path) |
--exclude=TERM | Exclude results containing term (supports ` |
-p, --path | Show full path and copy it to clipboard |
-m, --mirror | Copy exploit to current directory |
-x, --examine | Open exploit content using $PAGER |
-j, --json | Output results in JSON format |
-w, --www | Show Exploit-DB.com URLs instead of local paths |
--cve=CVE-ID | Search by CVE identifier |
--nmap=FILE.xml | Parse Nmap XML output for service versions |
-c, --case | Case-sensitive search |
-v, --verbose | Display extended information |
💡 Filtering & Refining Results
SearchSploit returns many results for common software. Use these options to narrow them down.
Search Titles Only
searchsploit -t oracle windows
Exact Match
searchsploit -e "Apache 2.4.49"
Strict Version Matching
Disables fuzzy range matching:
searchsploit -s Apache 2.4.49
Exclude Terms
Remove results containing specific terms (e.g., Denial of Service or Proof of Concept):
searchsploit linux kernel 3.2 --exclude="(PoC)|/dos/"
Pro Tip: Use /dos/ (with slashes) to filter by file path rather than title. This ensures you filter out denial-of-service exploits even if the title doesn't contain "dos".
Piping Output
Combine with standard Unix tools like grep for advanced filtering:
searchsploit XnView | grep -v '/dos/'
🔍 Searching by CVE
If you already know the CVE identifier, this is the most direct method:
searchsploit --cve 2021-44228# orsearchsploit --cve CVE-2021-44228
📂 Working with Exploits
SearchSploit doesn't execute exploits—it helps you find, inspect, and copy them.
Viewing Full Path
searchsploit -p 39446
This displays the full system path and copies it to your clipboard.
Examining Exploit Content
searchsploit -x 39446
Opens the exploit in your default pager (e.g., less).
Copying an Exploit to Your Current Directory
searchsploit -m 39446
You can also copy all matching exploits at once:
searchsploit apache 2.4.49 -m
Generating Online Links
searchsploit -w WarFTP 1.65
This outputs direct https://www.exploit-db.com/exploits/... URLs for each result.
🔗 Integration with Nmap
SearchSploit can parse Nmap XML output and automatically search for exploits for every detected service and version.
Step 1: Run an Nmap Scan with XML Output
nmap -sV -oX scan.xml <target>
Step 2: Feed the XML to SearchSploit
searchsploit --nmap scan.xml
This turns a simple port scan into a candidate-exploit list, saving significant manual effort.
🛠️ Practical Workflow Example
A common penetration testing workflow using SearchSploit:
# 1. Update the databasesudo searchsploit -u# 2. Scan a target with Nmap and save XMLnmap -sV -oX target_scan.xml 10.10.10.100# 3. Search for exploits based on scan resultssearchsploit --nmap target_scan.xml# 4. Found a promising exploit (e.g., EDB-ID 12345)?# Examine it firstsearchsploit -x 12345# 5. Copy it to your working directorysearchsploit -m 12345# 6. Review and modify the exploit as needed for the specific targetnano 12345.py
🧰 Related Tools & Resources
| Tool / Resource | Description |
|---|---|
| Exploit-DB Website | https://www.exploit-db.com/ — Online searchable archive |
| Google Hacking Database (GHDB) | Dorks for discovering sensitive information; also maintained by OffSec |
| Metasploit Framework | Many Exploit-DB entries include Metasploit modules |
| SearchSploit Manual | https://www.exploit-db.com/searchsploit — Official documentation |
| exploitdb-papers | Additional repository for whitepapers and research |
| exploitdb-bin-sploits | Repository for binary exploits not included in the main archive |
⚠️ Common Pitfalls & Troubleshooting
| Issue | Solution |
|---|---|
| "searchsploit: command not found" | Install the exploitdb package or add the git clone directory to your $PATH. |
| Missing recent exploits | Update the database: searchsploit -u. |
| Too many results | Use -t (title only), -e (exact), -s (strict), or --exclude to filter. |
| Output has color codes when piping | Use --disable-colour to strip ANSI codes. |
| Windows support | No native support; use Kali in a VM, Docker, or WSL. |
| Exploit doesn't work | Many exploits are outdated or require modification. Always review the code and test in a lab. |
💎 Final Thoughts
ExploitDB and SearchSploit are indispensable tools in the penetration tester's toolkit. While the web interface is convenient for quick lookups, SearchSploit's offline capability makes it invaluable during assessments in segregated or air-gapped environments where internet access is unavailable.
By mastering its filtering options, Nmap integration, and workflow combinations, you can rapidly move from service discovery to exploit identification—turning hours of manual searching into minutes of automated reconnaissance.
Official Resources:
- Exploit-DB Website: https://www.exploit-db.com/
- SearchSploit Manual: https://www.exploit-db.com/searchsploit
- GitLab Repository: https://gitlab.com/exploit-database/exploitdb
- Binary Exploits Repo: https://gitlab.com/exploit-database/exploitdb-bin-sploits
- Papers Repo: https://gitlab.com/exploit-database/exploitdb-papers
Author
Discussion · 0
No comments yet — start the discussion.
Sign in to join the discussion.