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


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.