Skip to content

Exploit-DB

65 commands

The Exploit Database archive: public exploits and proof-of-concept code, searchable offline via its local copy.

  • exploits
  • research
  • CVE

Install Exploit-DB

sudo apt install exploitdb

Basic Usage & Maintenance2

searchsploit -h

Displays the main help menu and lists all available command-line options

searchsploit -u

Updates the local ExploitDB database to the latest version via git

Platform Filtering4

searchsploit --platform windows

Lists all available exploits specifically for the Windows platform

Link
searchsploit --platform linux

Lists all available exploits specifically for the Linux platform

Link
searchsploit --platform android

Filters the database to show only Android mobile platform exploits

Link
searchsploit --platform hardware

Searches specifically for hardware and IoT device vulnerabilities

Link

Platform & Keyword Combined1

searchsploit wordpress --platform php

Searches for WordPress exploits but restricts results to PHP based payloads

Link

Exploit Type Filtering4

searchsploit --type webapps

Filters the search results to show only web application vulnerabilities

Link
searchsploit --type local

Displays only local exploits requiring access to the target machine

Link
searchsploit --type remote

Displays only remote exploits executable over the network

Link
searchsploit --type dos

Filters results to show Denial of Service (DoS) proof of concept code

Link

Advanced Filtering2

searchsploit linux kernel --exclude="dos"

Searches for Linux kernel exploits while excluding DoS results

Link
searchsploit wordpress --exclude="plugin"

Searches for WordPress core vulnerabilities by excluding plugin results

Link

Case Sensitivity1

searchsploit -c Apache

Performs a case-sensitive search to distinguish specific capitalization

Link

Exploit Inspection3

searchsploit -p 42031

Displays the full path and metadata for the exploit with ID 42031

Link
searchsploit -p 12345 --clipboard

Copies the full path of exploit ID 12345 directly to the clipboard

Link
searchsploit -x 35661

Opens the source code of exploit ID 35661 in the default pager or text editor

Link

Exploit Retrieval2

searchsploit -m 12345

Mirrors (copies) the exploit file with ID 12345 to the current working directory

Link
searchsploit -m 42031 42032

Copies multiple exploit files (IDs 42031 and 42032) to the current directory at once

Link

Web Integration2

searchsploit -w wordpress

Shows the URL to the exploit on Exploit-DB.com instead of the local path

Link
searchsploit -w --id 12345

Generates the direct online link for the specific exploit ID 12345

Link

Result Overflow1

searchsploit --overflow

Allows search results to overflow text wrapping for better visibility on wide screens

Link

Result Formatting2

searchsploit --colour

Forces colorized output even when piping results to other commands

Link
searchsploit --no-colour

Disables output coloring for cleaner text processing in scripts

Link

Automation & Scripting3

searchsploit --json wordpress

Outputs search results in JSON format for parsing by external tools

Link
searchsploit -j microsoft windows

Generates JSON output for a multi-keyword search query

Link
searchsploit --id 12345 --json

Returns detailed metadata for a specific ID in JSON format

Link

Verbose Output1

searchsploit -v wordpress

Enables verbose output to see more details about the search process

Link

Full ID Display1

searchsploit --id wordpress

Displays the ExploitDB ID explicitly in the search results columns

Link

Complex Workflow2

searchsploit samba --type remote --platform linux

Combines keyword, type, and platform filters for a precise search

Link
searchsploit -t apache --exclude="(dos|poisoning)"

Searches Apache titles while excluding results matching regex pattern for DoS or poisoning

Link

Red Team Workflow2

searchsploit priv esc linux kernel 3.10

Hunts for privilege escalation exploits on a specific Linux kernel version

Link
searchsploit windows local --id

Lists Windows local exploits showing IDs to quickly prepare for mirroring

Link

Exploit Analysis1

searchsploit --examine 42031

Opens the exploit code for ID 42031 in the pager for manual code review

Link

Scripting Integration2

searchsploit apache | grep "Remote"

Pipes search results to grep to filter for 'Remote' exploits using shell utilities

Link
searchsploit -j wordpress > results.json

Saves the JSON output of a search directly to a file for later analysis

Link

Advanced Nmap Integration1

searchsploit --nmap file.xml

Searches for exploits based on service versions detected in an Nmap XML output file

Link

Database Management2

ls /usr/share/exploitdb/

Manually lists the root directory of the local ExploitDB repository

Link
ls /usr/share/exploitdb/exploits/windows/remote/

Navigates to the raw directory structure to browse Windows remote exploits manually

Link

Blue Team Intelligence1

searchsploit --cve 2023 | wc -l

Counts the total number of public exploits registered for CVEs in the year 2023

Link

Paper Analysis1

searchsploit --type papers

Searches exclusively for whitepapers and security research documents

Link

Exploit Copying1

searchsploit -m $(searchsploit wordpress --id | awk '{print $2}')

Advanced shell command to auto-mirror all results from a specific keyword search

Link

Troubleshooting1

searchsploit --verbose --update

Runs the update process in verbose mode to debug connection or git issues

Link

Legacy Compatibility1

searchsploit --colour --overflow

Ensures readable, colorized output on legacy terminals or narrow displays

Link

Research Automation1

searchsploit --json | jq .

Pipes full database JSON dump to jq for processing (requires jq installed)

Link

Metasploit Correlation1

searchsploit metasploit

Finds exploits that explicitly mention 'Metasploit' in their title or description

Link