# Exploit-DB

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

- Category: Exploitation
- Commands: 65
- Page: https://terminal.rokibulroni.com/tool/exploitation/exploitdb
- Homepage: https://www.exploit-db.com
- Documentation: https://www.exploit-db.com/searchsploit
- Tags: exploits, research, CVE

## Install

- apt: `sudo apt install exploitdb`

## Basic Usage & Maintenance

### searchsploit -h

```bash
searchsploit -h
```

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

### searchsploit -u

```bash
searchsploit -u
```

Updates the local ExploitDB database to the latest version via git


## Basic Exploit Search

### searchsploit wordpress

```bash
searchsploit wordpress
```

Performs a broad search for exploits containing the term 'wordpress'

### searchsploit apache

```bash
searchsploit apache
```

Searches for all Apache web server related exploits and vulnerabilities

### searchsploit vsftpd

```bash
searchsploit vsftpd
```

Locates exploits specifically targeting the vsftpd FTP server software


## Multi-Keyword Search

### searchsploit linux kernel

```bash
searchsploit linux kernel
```

Searches for exploits matching both 'linux' and 'kernel' keywords

### searchsploit windows smb

```bash
searchsploit windows smb
```

Finds Windows exploits related to the SMB protocol

### searchsploit joomla 3.7

```bash
searchsploit joomla 3.7
```

Refines search results to Joomla CMS version 3.7 specifically

### searchsploit apache struts 2

```bash
searchsploit apache struts 2
```

Searches for Apache Struts version 2 vulnerabilities using three keywords


## Title Based Search

### searchsploit -t wordpress

```bash
searchsploit -t wordpress
```

Restricts the search strictly to the exploit title, ignoring the path info

### searchsploit -t oracle

```bash
searchsploit -t oracle
```

Searches only titles for 'oracle' to reduce false positives from paths


## Exact Match Search

### searchsploit -s "buffer overflow"

```bash
searchsploit -s "buffer overflow"
```

Performs a strict exact match search for the phrase 'buffer overflow'

### searchsploit -s "privilege escalation"

```bash
searchsploit -s "privilege escalation"
```

Finds exploits explicitly tagged with 'privilege escalation' in the description


## Platform Filtering

### searchsploit --platform windows

```bash
searchsploit --platform windows
```

Lists all available exploits specifically for the Windows platform

### searchsploit --platform linux

```bash
searchsploit --platform linux
```

Lists all available exploits specifically for the Linux platform

### searchsploit --platform android

```bash
searchsploit --platform android
```

Filters the database to show only Android mobile platform exploits

### searchsploit --platform hardware

```bash
searchsploit --platform hardware
```

Searches specifically for hardware and IoT device vulnerabilities


## Platform & Keyword Combined

### searchsploit wordpress --platform php

```bash
searchsploit wordpress --platform php
```

Searches for WordPress exploits but restricts results to PHP based payloads


## Exploit Type Filtering

### searchsploit --type webapps

```bash
searchsploit --type webapps
```

Filters the search results to show only web application vulnerabilities

### searchsploit --type local

```bash
searchsploit --type local
```

Displays only local exploits requiring access to the target machine

### searchsploit --type remote

```bash
searchsploit --type remote
```

Displays only remote exploits executable over the network

### searchsploit --type dos

```bash
searchsploit --type dos
```

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


## Advanced Filtering

### searchsploit linux kernel --exclude="dos"

```bash
searchsploit linux kernel --exclude="dos"
```

Searches for Linux kernel exploits while excluding DoS results

### searchsploit wordpress --exclude="plugin"

```bash
searchsploit wordpress --exclude="plugin"
```

Searches for WordPress core vulnerabilities by excluding plugin results


## CVE Based Search

### searchsploit --cve 2021

```bash
searchsploit --cve 2021
```

Lists all exploits associated with Common Vulnerabilities and Exposures from 2021

### searchsploit --cve 2017-0144

```bash
searchsploit --cve 2017-0144
```

Searches for a specific vulnerability by its exact CVE identifier (e.g., EternalBlue)


## Case Sensitivity

### searchsploit -c Apache

```bash
searchsploit -c Apache
```

Performs a case-sensitive search to distinguish specific capitalization


## Exploit Inspection

### searchsploit -p 42031

```bash
searchsploit -p 42031
```

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

### searchsploit -p 12345 --clipboard

```bash
searchsploit -p 12345 --clipboard
```

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

### searchsploit -x 35661

```bash
searchsploit -x 35661
```

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


## Exploit Retrieval

### searchsploit -m 12345

```bash
searchsploit -m 12345
```

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

### searchsploit -m 42031 42032

```bash
searchsploit -m 42031 42032
```

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


## Web Integration

### searchsploit -w wordpress

```bash
searchsploit -w wordpress
```

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

### searchsploit -w --id 12345

```bash
searchsploit -w --id 12345
```

Generates the direct online link for the specific exploit ID 12345


## Result Overflow

### searchsploit --overflow

```bash
searchsploit --overflow
```

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


## Result Formatting

### searchsploit --colour

```bash
searchsploit --colour
```

Forces colorized output even when piping results to other commands

### searchsploit --no-colour

```bash
searchsploit --no-colour
```

Disables output coloring for cleaner text processing in scripts


## Advanced Search

### searchsploit --strict "remote code execution"

```bash
searchsploit --strict "remote code execution"
```

Performs a strict search for the exact phrase 'remote code execution'


## Automation & Scripting

### searchsploit --json wordpress

```bash
searchsploit --json wordpress
```

Outputs search results in JSON format for parsing by external tools

### searchsploit -j microsoft windows

```bash
searchsploit -j microsoft windows
```

Generates JSON output for a multi-keyword search query

### searchsploit --id 12345 --json

```bash
searchsploit --id 12345 --json
```

Returns detailed metadata for a specific ID in JSON format


## Verbose Output

### searchsploit -v wordpress

```bash
searchsploit -v wordpress
```

Enables verbose output to see more details about the search process


## Full ID Display

### searchsploit --id wordpress

```bash
searchsploit --id wordpress
```

Displays the ExploitDB ID explicitly in the search results columns


## Complex Workflow

### searchsploit samba --type remote --platform linux

```bash
searchsploit samba --type remote --platform linux
```

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

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

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

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


## Red Team Workflow

### searchsploit priv esc linux kernel 3.10

```bash
searchsploit priv esc linux kernel 3.10
```

Hunts for privilege escalation exploits on a specific Linux kernel version

### searchsploit windows local --id

```bash
searchsploit windows local --id
```

Lists Windows local exploits showing IDs to quickly prepare for mirroring


## Exploit Analysis

### searchsploit --examine 42031

```bash
searchsploit --examine 42031
```

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


## Scripting Integration

### searchsploit apache | grep "Remote"

```bash
searchsploit apache | grep "Remote"
```

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

### searchsploit -j wordpress > results.json

```bash
searchsploit -j wordpress > results.json
```

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


## Advanced Nmap Integration

### searchsploit --nmap file.xml

```bash
searchsploit --nmap file.xml
```

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


## Database Management

### ls /usr/share/exploitdb/

```bash
ls /usr/share/exploitdb/
```

Manually lists the root directory of the local ExploitDB repository

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

```bash
ls /usr/share/exploitdb/exploits/windows/remote/
```

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


## Blue Team Intelligence

### searchsploit --cve 2023 | wc -l

```bash
searchsploit --cve 2023 | wc -l
```

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


## Paper Analysis

### searchsploit --type papers

```bash
searchsploit --type papers
```

Searches exclusively for whitepapers and security research documents


## Shellcode Search

### searchsploit --type shellcode

```bash
searchsploit --type shellcode
```

Searches the database specifically for shellcode snippets rather than full exploits

### searchsploit linux --type shellcode

```bash
searchsploit linux --type shellcode
```

Finds shellcode specifically designed for Linux environments


## Combined Advanced Search

### searchsploit --strict --platform windows --type local

```bash
searchsploit --strict --platform windows --type local
```

Combines strict mode, platform filter, and type filter for precise targeting


## Exploit Copying

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

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

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


## Troubleshooting

### searchsploit --verbose --update

```bash
searchsploit --verbose --update
```

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


## Legacy Compatibility

### searchsploit --colour --overflow

```bash
searchsploit --colour --overflow
```

Ensures readable, colorized output on legacy terminals or narrow displays


## Research Automation

### searchsploit --json | jq .

```bash
searchsploit --json | jq .
```

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


## Metasploit Correlation

### searchsploit metasploit

```bash
searchsploit metasploit
```

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


## Specific Author Search

### searchsploit --author "Offensive Security"

```bash
searchsploit --author "Offensive Security"
```

Searches for exploits or papers released by a specific author or organization


## Exact Title Search

### searchsploit -t "Microsoft Windows 7"

```bash
searchsploit -t "Microsoft Windows 7"
```

Searches for the exact string 'Microsoft Windows 7' appearing in the title field only

## Related tools

- [SearchSploit](https://terminal.rokibulroni.com/tool/exploitation/searchsploit)
- [Metasploit Framework](https://terminal.rokibulroni.com/tool/exploitation/metasploit)
