Exploit-DB / searchsploit
Exploit Database et son outil CLI searchsploit. Recherchez parmi plus de 50 000 exploits, shellcodes, et papiers par CVE, nom de logiciel, ou version, hors ligne. Exploit Database and its CLI tool searchsploit. Search 50,000+ exploits, shellcodes, and papers by CVE, software name, or version offline.
↗ https://www.exploit-db.comOverview
Exploit-DB is the world’s largest public exploit archive. searchsploit is its offline CLI that queries a local copy of the database. Combined, they’re the first stop when looking for public exploits against a known software version.
searchsploit Basics
# Search by software name
searchsploit wordpress
searchsploit "apache 2.4"
searchsploit openssh
# Search by CVE
searchsploit CVE-2021-44228
searchsploit --cve 2021-44228
Case-insensitive search (default)
searchsploit apache
Search exact phrase
searchsploit -e "Microsoft Windows 10"
Search for remote exploits only
searchsploit -t remote openssh
Viewing & Copying Exploits
searchsploit -p 12345 # Show path to file
searchsploit -x 12345 # Examine/view the exploit
searchsploit -m 12345 # Mirror/copy exploit to current directory
Copy multiple exploits
searchsploit -m 12345 67890
Open exploit in a pager
searchsploit -x exploits/windows/remote/12345.py
Filtering Results
Only web application exploits
searchsploit --type webapps apache
Only remote exploits
searchsploit --type remote openssh
Only local exploits
searchsploit --type local linux
Exclude DoS
searchsploit --exclude="DoS" apache
JSON output
searchsploit -j openssh | jq .
Show only file paths (for scripting)
searchsploit -w openssh # Show full URLs to exploit-db.com
Updating the Database
# Update local exploit database
searchsploit -u
# or
sudo apt update && sudo apt install exploitdb
Exploit-DB Web Interface
https://www.exploit-db.com/search
Key search fields:
- CVE ID: CVE-2021-44228
- Author: exploit author
- Type: Remote, Local, WebApps, DoS, PoC
- Platform: Windows, Linux, macOS, PHP, Java
- Application: software name
- Date range
Common Workflow
- Enumerate software versions
nmap -sCV -p- target.com | grep "open"
→ → Apache httpd 2.4.29 → OpenSSH 7.4
# 2. Search for exploits
searchsploit apache 2.4.29
searchsploit openssh 7.4
- Review exploit details
searchsploit -x exploits/multiple/remote/46073.py
# 4. Copy to working directory and test
searchsploit -m 46073
python3 46073.py target.com 80
Metasploit Integration
# Many Exploit-DB entries have Metasploit module equivalents
# Look for "Metasploit" tag on exploit-db.com
# Search in msfconsole
msfconsole > search CVE-2021-44228
msfconsole > search apache 2.4
Cross-reference with searchsploit
searchsploit "EternalBlue" | grep -i metasploit
Tips
- Always
searchsploit -xto read the exploit before running it — understand what it does - Some exploits need modification (target IP/port, payload, etc.) before they’ll work
- Filter results with
grep -v DoSto hide denial-of-service entries -j(JSON) output is useful for piping into tools or writing custom scripts
Help / Man page
searchsploit [options] keywords
-p ID Print path to exploit
-x ID Examine/view exploit
-m ID Mirror/copy exploit to current dir
-e Exact phrase search
-t type Filter by type (remote, local, webapps, dos)
-j JSON output
-w Show URL to exploit-db.com
-u Update database
--id Show EDB-ID
--cve CVE Search by CVE ID
--exclude STR Exclude results matching string
--nmap FILE Read nmap XML to auto-suggest exploits
Vue d’ensemble
Exploit-DB est la plus grande archive publique d’exploits au monde. searchsploit est son CLI hors ligne qui interroge une copie locale de la base de données. Combinés, ils constituent la première étape lors de la recherche d’exploits publics contre une version de logiciel connue.
Bases de searchsploit
# Rechercher par nom de logiciel
searchsploit wordpress
searchsploit "apache 2.4"
searchsploit openssh
# Rechercher par CVE
searchsploit CVE-2021-44228
searchsploit --cve 2021-44228
Recherche insensible à la casse (par défaut)
searchsploit apache
Rechercher une phrase exacte
searchsploit -e "Microsoft Windows 10"
Rechercher uniquement les exploits distants
searchsploit -t remote openssh
Consulter et copier des exploits
searchsploit -p 12345 # Afficher le chemin vers le fichier
searchsploit -x 12345 # Examiner/consulter l'exploit
searchsploit -m 12345 # Copier l'exploit dans le répertoire courant
Copier plusieurs exploits
searchsploit -m 12345 67890
Ouvrir un exploit dans un pager
searchsploit -x exploits/windows/remote/12345.py
Filtrer les résultats
# Uniquement les exploits d'applications web
searchsploit --type webapps apache
# Uniquement les exploits distants
searchsploit --type remote openssh
# Uniquement les exploits locaux
searchsploit --type local linux
# Exclure les DoS
searchsploit --exclude="DoS" apache
# Sortie JSON
searchsploit -j openssh | jq .
# Afficher uniquement les chemins de fichiers (pour le scripting)
searchsploit -w openssh # Afficher les URL complètes vers exploit-db.com
Mettre à jour la base de données
# Mettre à jour la base d'exploits locale
searchsploit -u
# ou
sudo apt update && sudo apt install exploitdb
Interface web Exploit-DB
https://www.exploit-db.com/search
Champs de recherche clés :
- CVE ID: CVE-2021-44228
- Author: auteur de l'exploit
- Type: Remote, Local, WebApps, DoS, PoC
- Platform: Windows, Linux, macOS, PHP, Java
- Application: nom du logiciel
- Date range
Workflow courant
- Énumérer les versions de logiciels
nmap -sCV -p- target.com | grep "open"
→ Apache httpd 2.4.29 → OpenSSH 7.4
# 2. Rechercher des exploits
searchsploit apache 2.4.29
searchsploit openssh 7.4
- Examiner les détails de l’exploit
searchsploit -x exploits/multiple/remote/46073.py
# 4. Copier dans le répertoire de travail et tester
searchsploit -m 46073
python3 46073.py target.com 80
Intégration avec Metasploit
# De nombreuses entrées Exploit-DB ont des équivalents en module Metasploit
# Cherchez le tag "Metasploit" sur exploit-db.com
# Rechercher dans msfconsole
msfconsole > search CVE-2021-44228
msfconsole > search apache 2.4
Croiser avec searchsploit
searchsploit "EternalBlue" | grep -i metasploit
Conseils
- Toujours faire
searchsploit -xpour lire l’exploit avant de le lancer : comprendre ce qu’il fait - Certains exploits nécessitent des modifications (IP/port cible, payload, etc.) avant de fonctionner
- Filtrez les résultats avec
grep -v DoSpour masquer les entrées de déni de service - La sortie
-j(JSON) est utile pour rediriger vers d’autres outils ou écrire des scripts personnalisés
Aide / Page de manuel
searchsploit [options] keywords
-p ID Print path to exploit
-x ID Examine/view exploit
-m ID Mirror/copy exploit to current dir
-e Exact phrase search
-t type Filter by type (remote, local, webapps, dos)
-j JSON output
-w Show URL to exploit-db.com
-u Update database
--id Show EDB-ID
--cve CVE Search by CVE ID
--exclude STR Exclude results matching string
--nmap FILE Read nmap XML to auto-suggest exploits