#Chercher
# Mettre à jour la base locale
searchsploit -u
# Recherche simple
searchsploit apache 2.4.49
searchsploit openssh 7.2
# Titre et chemin uniquement
searchsploit -t wordpress plugin
# Exclure du bruit
searchsploit --exclude="dos" apache
# Recherche par CVE
searchsploit --cve 2021-44228
| Option | Effet |
|---|---|
-t |
Cherche dans le titre seulement |
-w |
Affiche l'URL Exploit-DB |
-x |
Ouvre l'exploit dans $PAGER |
-m |
Copie l'exploit dans le dossier courant |
-p |
Affiche le chemin complet |
-j |
Sortie JSON |
#Lire et copier
# Afficher l'exploit
searchsploit -x 50383
# Copier dans le dossier courant
searchsploit -m 50383
# Copier avec le titre
searchsploit -m 50383 --rename
#Depuis un scan Nmap
# Générer une liste de services
nmap -sV -oX scan.xml 10.10.10.10
# Chercher les exploits correspondants
searchsploit --nmap scan.xml
# Ne garder que les résultats exploitables
searchsploit --nmap scan.xml -t
#Workflow
# 1. Identifier la version exacte
nmap -sV -p 80,443 10.10.10.10
# 2. Chercher l'exploit
searchsploit -w apache 2.4.49
# 3. Lire, comprendre, adapter
searchsploit -x 50383
# 4. Copier et modifier les placeholders (LHOST, URL, credentials)
searchsploit -m 50383