> For the complete documentation index, see [llms.txt](https://d4rk1337.gitbook.io/the-pentesters-cheat-sheet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://d4rk1337.gitbook.io/the-pentesters-cheat-sheet/enumeration/04-exploit-detection.md).

# Exploit detection

## Exploit database (exploit-db)

[Exploit Database - Exploits for Penetration Testers, Researchers, and Ethical Hackers](https://www.exploit-db.com)

**Search** (ignoring DoS exploits)

```bash
searchsploit <term> | grep -v '/dos/'
```

Search in **title** only

```bash
searchsploit -t <term>
```

Get **details** for exploit

```bash
searchsploit -x <exploit-name>
```

**Copy full url** to clipboard

```bash
searchsploit -p <exploit-name>
```

**Modify** exploit (copy to current dir)

```bash
searchsploit -m <exploit-name>
```

Advanced "filtering" **example**

```bash
searchsploit --colour -t php 5 | grep -vi '/dos/\|\.php[^$]' | grep -i '5\.\(5\|x\)' | grep -vi '/windows/\|PHP-Nuke\|RapidKill Pro\|Gift Registry\|Artiphp CMS'
```

**Update** searchsploit database

```bash
searchsploit -u
```

## SecurityFocus

[SecurityFocus](https://www.securityfocus.com/bid) is an online computer security news portal and purveyor of information security services.

## Metasploit

Search for exploits

```bash
search <service> <version>
```
