Skip to content

SearchSploit

60 commands

The command-line search for a local copy of Exploit-DB — find, examine and copy exploits by product, version or CVE.

  • exploits
  • search
  • offline

Install SearchSploit

sudo apt install exploitdb

Help and Updates2

searchsploit --help

Displays the main help menu and lists all available options and flags

searchsploit -u

Updates the local Exploit Database repository to the latest version

Case Sensitivity2

searchsploit -c OpenSSH

Performs a case-sensitive search distinguishing between 'OpenSSH' and 'openssh'

Link
searchsploit -c MySQL

Ensures the search respects the capitalization of the term MySQL

Link

Platform Filtering3

searchsploit --platform windows

Lists all available exploits targeting the Windows operating system

Link
searchsploit --platform linux

Filters the database to show only exploits designed for Linux systems

Link
searchsploit --platform android

Shows exploits targeting the Android mobile platform

Link

Type Filtering5

searchsploit --type webapps

Filters results to show only web application based vulnerabilities

Link
searchsploit --type local

Restricts results to local privilege escalation or local exploits

Link
searchsploit --type remote

Limits the output to remote code execution and remote exploits

Link
searchsploit --type shellcode

Searches specifically for shellcode entries rather than full exploit scripts

Link
searchsploit --type dos

Filters for Denial of Service (DoS) proof of concept scripts

Link

Combined Filtering2

searchsploit --platform windows --type local

Combines filters to find local privilege escalation exploits for Windows

Link
searchsploit apache --platform linux --type remote

Finds remote Apache exploits specifically for Linux platforms

Link

Excluding Terms2

searchsploit wordpress --exclude="dos"

Searches for WordPress exploits while removing Denial of Service results

Link
searchsploit apache --exclude="dos|poisoning"

Uses pipe syntax to exclude multiple terms like DoS and poisoning from results

Link

File Operations4

searchsploit -p 39446

Displays the full local path to the exploit file with ID 39446

Link
searchsploit -m 39446

Copies the exploit file 39446 to the current working directory

Link
searchsploit -m 42031 42032

Mirrors multiple exploit files to the current directory in a single command

Link
searchsploit -x 39446

Opens the specified exploit file in the default terminal pager or editor

Link

Online Integration2

searchsploit -w apache

Provides URLs to the Exploit-DB website for the search results

Link
searchsploit -w 39446

Generates the direct web link for the specific exploit ID 39446

Link

Output Formatting5

searchsploit --id

Displays the EDB-ID explicitly in the search results columns

Link
searchsploit --color

Forces colored output even when piping results to other commands

Link
searchsploit --no-color

Disables color codes in output for easier parsing or logging

Link
searchsploit -o apache

Allows overflow of columns to prevent description truncation

Link
searchsploit -v apache

Enables verbose mode to show more details about the search process

Link

JSON Output2

searchsploit -j apache

Outputs the search results in JSON format for programmatic processing

Link
searchsploit --json wordpress

Uses the long-form flag to generate machine-readable JSON output

Link

Strict Mode1

searchsploit -s "linux kernel"

Enables strict searching which may filter out loose matches

Link

Advanced Workflow4

searchsploit tomcat --platform windows --type remote --id

Combines ID display with platform and type filters for precise targeting

Link
searchsploit joomla --exclude="(SQLi|XSS)"

Uses regex-style exclusion to filter out common SQLi and XSS vulnerabilities

Link
searchsploit --cve 2020

Searches specifically for CVEs assigned in the year 2020

Link
searchsploit privilege --platform linux --type local -t

Searches titles only for privilege escalation on local Linux systems

Link

Automation and Scripting3

searchsploit -j nginx > nginx_exploits.json

Redirects JSON output to a file for use in automated pipelines

Link
searchsploit -p 44228 | xargs grep "Usage"

Finds the path and pipes it to grep to check usage instructions

Link
searchsploit struts --json | jq .

Pipes JSON output to jq for pretty-printing and parsing

Link

Red Team Discovery2

searchsploit "authenticated remote" --platform php

Searches for PHP exploits requiring authentication for remote execution

Link
searchsploit "unauthenticated RCE"

Hunts for critical unauthenticated remote code execution vulnerabilities

Link

Blue Team Research2

searchsploit --author "Google Security"

Filters exploits by specific security researchers or organizations

Link
searchsploit --type webapps --exclude="cms"

Looks for web app vulnerabilities excluding generic CMS results

Link

Nmap Integration2

searchsploit --nmap file.xml

Parses an Nmap XML output file to automatically suggest exploits

Link
searchsploit -v --nmap scan_result.xml

Parses Nmap XML in verbose mode to see how services are matched

Link

Complex Regex1

searchsploit -t "(buffer|heap) overflow"

Uses regex in title search to find buffer or heap overflows

Link

Exploit Mirroring1

searchsploit -m $(searchsploit wordpress -w -t --id | awk '{print $1}')

Advanced subshell usage to mirror all found exploits (use with caution)

Link

Shellcode Analysis1

searchsploit linux/x86 --type shellcode

Searches specifically for x86 architecture shellcode for Linux

Link

Maintenance1

searchsploit --update

Alternative long-flag syntax to update the exploit database

Link

Full Path Output1

searchsploit --fullpath apache

Displays the complete system path to the exploit files in results

Link