> For the complete documentation index, see [llms.txt](https://alham-rizvi.gitbook.io/alhamrizvi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alham-rizvi.gitbook.io/alhamrizvi/bug-bounty-methodology/wpvuln.md).

# wpvuln

#### WordPress Detection

```bash
httpx -l hosts.txt -path /wp-login.php -status-code -silent
```

#### WPScan Full Enumeration

```bash
wpscan --url https://target.com --api-token API_TOKEN
```

#### WPScan Plugins Enumeration

```bash
wpscan --url https://target.com --enumerate p --api-token API_TOKEN
```

#### WPScan Themes Enumeration

```bash
wpscan --url https://target.com --enumerate t --api-token API_TOKEN
```

#### WPScan Users Enumeration

```bash
wpscan --url https://target.com --enumerate u
```

#### WPScan Vulnerable Plugins Only

```bash
wpscan --url https://target.com --enumerate vp --api-token API_TOKEN
```

#### WPScan Aggressive Mode

```bash
wpscan --url https://target.com --plugins-detection aggressive --api-token API_TOKEN
```

#### Nuclei WordPress CVE Scan

```bash
nuclei -u https://target.com -t http/cves/wordpress/
```

#### Nuclei WordPress Files Exposure

```bash
nuclei -u https://target.com -t http/exposures/
```

#### WordPress Backup Files

```bash
dirsearch -u https://target.com -w wordlists/wp-backups.txt
```

#### wp-config.php Exposure

```bash
curl -I https://target.com/wp-config.php
```

***

#### REST API Enumeration

```bash
curl https://target.com/wp-json/wp/v2/users
```

#### XML-RPC Enabled Check

```bash
curl -X POST https://target.com/xmlrpc.php
```

#### XML-RPC Brute Force (Detection)

```bash
wpscan --url https://target.com --passwords passwords.txt --usernames users.txt
```

#### Theme File LFI Test

```bash
curl https://target.com/wp-content/themes/theme/file.php?file=../../../../etc/passwd
```

#### Plugin File LFI Test

```bash
curl https://target.com/wp-content/plugins/plugin/file.php?file=../../../../etc/passwd
```

#### WordPress Upload Directory Access

```bash
httpx -u https://target.com/wp-content/uploads/ -status-code
```

#### wp-admin Access Check

```bash
httpx -u https://target.com/wp-admin/ -status-code
```

#### WordPress Version Detection

```bash
curl https://target.com | grep -i "generator"
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://alham-rizvi.gitbook.io/alhamrizvi/bug-bounty-methodology/wpvuln.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
