How to create a backdoor script in WordPress

Prem Tiwari - - WordPress Security, WordPress Snippets


In this tutorial, I will explain how to create a backdoor script in WordPress with an example.

Here is the piece of WordPress code to create a new user using the script with the Administrator rights.

1. Open functions.php file from your theme folder.

2. Copy the below code and paste it inside the functions.php file.

3. Save the changes.

4. Open the web browser and this URL http://www.yourdomain.com/?backdoor=knockknock. Once the page is loaded, a new user will be created with the Administrator rights.

10 Best Security Plugins For WordPress


Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer and a blogger by hobby.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.