# 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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://d4rk1337.gitbook.io/the-pentesters-cheat-sheet/enumeration/04-exploit-detection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
