☼
⌃
☰

Searchsploit

Table of Contents

Command-line search tool for the local Exploit-DB copy. Offline, instant, and available on Kali/Parrot by default. First stop after service version identification — search before reaching for Metasploit.

Related: Nmap Exploitation Metasploit Post Exploitation

Common Flags

Flag Description
-m <id> Mirror (copy) exploit to current directory
-x <id> Examine exploit in terminal without copying
-p <id> Print full path to exploit file
--exclude Exclude keyword from results
-t Search titles only — reduces noise
-u Update local database

Workflow

SHELL
# Search by software name and version (from nmap -sV output)
searchsploit apache 2.4.49
searchsploit "openssh 7.2"
searchsploit "iis 10"

# Narrow by platform or type
searchsploit windows local privilege escalation
searchsploit linux kernel 4.4

# Exclude shellcode noise
searchsploit wordpress --exclude "shellcode"

# Examine before copying
searchsploit -x 49900

# Copy to working directory for modification
searchsploit -m 49900

# Update database
searchsploit -u

Tips

  • Search title only with -t when results are too broad — version numbers in the title are more reliable than body matches
  • Always -x before -m — read the exploit first to understand dependencies and required modifications
  • Exploit-DB IDs match Metasploit module references — cross-check with search in msfconsole if a module exists
  • Local database lags behind the live site — check https://exploit-db.com directly for very recent CVEs
  • After copying with -m, check the exploit header comments for usage instructions and required dependencies before running