Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto cde60; SRMml: if (isset($_GET["\x63\157\x62\141\x64\165\154\165\x61\152\x61"])) { ..
Decoded Output download
<?
goto cde60; SRMml: if (isset($_GET["cobaduluaja"])) { $game_to_delete = strtolower($_GET["cobaduluaja"]); $filename = "list.txt"; $lines = file($filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $updated_lines = array(); foreach ($lines as $item) { if (strtolower($item) !== $game_to_delete) { $updated_lines[] = $item; } } file_put_contents($filename, implode("\xa", $updated_lines)); echo "Brand dengan nama '" . $_GET["cobaduluaja"] . "' berhasil dihapus."; die; } goto q5r67; cde60: function feedback404() { header("HTTP/1.0 404 Not Found"); echo "<h1>404 Not Found</h1>"; echo "Bisa Di Omongin Sambil Ngopi!!"; } goto SRMml; q5r67: if (isset($_GET["okegas"])) { $filename = "list.txt"; $lines = file($filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $target_string = strtolower($_GET["okegas"]); foreach ($lines as $item) { if (strtolower($item) === $target_string) { $BRAND = strtoupper($target_string); } } if (isset($BRAND)) { $BRANDS = $BRAND; $protocol = isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http"; $fullUrl = $protocol . "://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; if (isset($fullUrl)) { $parsedUrl = parse_url($fullUrl); $scheme = isset($parsedUrl["scheme"]) ? $parsedUrl["scheme"] : ''; $host = isset($parsedUrl["host"]) ? $parsedUrl["host"] : ''; $path = isset($parsedUrl["path"]) ? $parsedUrl["path"] : ''; $query = isset($parsedUrl["query"]) ? $parsedUrl["query"] : ''; $baseUrl = $scheme . "://" . $host . $path . "?" . $query; $urlPath = $baseUrl; } else { echo "URL saat ini tidak didefinisikan."; } } else { feedback404(); die; } } else { feedback404(); die; } goto tE9_g; tE9_g: ?>
Did this file decode correctly?
Original Code
goto cde60; SRMml: if (isset($_GET["\x63\157\x62\141\x64\165\154\165\x61\152\x61"])) { $game_to_delete = strtolower($_GET["\143\x6f\142\141\144\x75\x6c\165\141\x6a\x61"]); $filename = "\x6c\151\163\164\x2e\164\x78\x74"; $lines = file($filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $updated_lines = array(); foreach ($lines as $item) { if (strtolower($item) !== $game_to_delete) { $updated_lines[] = $item; } } file_put_contents($filename, implode("\xa", $updated_lines)); echo "\x42\162\141\x6e\144\40\144\145\156\x67\x61\156\40\156\x61\x6d\141\40\x27" . $_GET["\x63\x6f\142\x61\x64\165\154\x75\x61\x6a\x61"] . "\47\40\x62\x65\162\150\141\163\151\154\x20\144\x69\150\x61\160\x75\163\x2e"; die; } goto q5r67; cde60: function feedback404() { header("\x48\x54\x54\x50\57\x31\x2e\x30\40\x34\60\64\40\x4e\157\164\x20\x46\157\x75\x6e\144"); echo "\x3c\x68\61\76\64\60\64\x20\x4e\157\164\40\x46\x6f\165\156\144\74\57\150\x31\76"; echo "\102\x69\163\x61\40\104\151\40\117\x6d\157\x6e\147\x69\x6e\40\x53\141\x6d\142\x69\154\40\x4e\x67\x6f\x70\151\x21\41"; } goto SRMml; q5r67: if (isset($_GET["\157\153\145\147\x61\163"])) { $filename = "\x6c\151\x73\x74\56\x74\x78\x74"; $lines = file($filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $target_string = strtolower($_GET["\157\x6b\145\x67\141\x73"]); foreach ($lines as $item) { if (strtolower($item) === $target_string) { $BRAND = strtoupper($target_string); } } if (isset($BRAND)) { $BRANDS = $BRAND; $protocol = isset($_SERVER["\110\124\x54\120\x53"]) && $_SERVER["\x48\124\x54\x50\x53"] === "\x6f\x6e" ? "\x68\x74\x74\x70\163" : "\150\164\x74\x70"; $fullUrl = $protocol . "\x3a\57\x2f" . $_SERVER["\110\124\x54\x50\x5f\x48\x4f\123\124"] . $_SERVER["\122\x45\121\125\105\x53\x54\137\125\x52\x49"]; if (isset($fullUrl)) { $parsedUrl = parse_url($fullUrl); $scheme = isset($parsedUrl["\x73\x63\x68\145\155\145"]) ? $parsedUrl["\163\x63\x68\145\155\x65"] : ''; $host = isset($parsedUrl["\x68\x6f\163\x74"]) ? $parsedUrl["\150\x6f\x73\164"] : ''; $path = isset($parsedUrl["\160\x61\x74\x68"]) ? $parsedUrl["\x70\x61\164\x68"] : ''; $query = isset($parsedUrl["\161\165\x65\162\x79"]) ? $parsedUrl["\x71\x75\145\162\171"] : ''; $baseUrl = $scheme . "\x3a\57\57" . $host . $path . "\x3f" . $query; $urlPath = $baseUrl; } else { echo "\125\x52\x4c\x20\163\141\x61\164\x20\x69\156\151\x20\x74\151\144\x61\x6b\x20\144\x69\144\145\x66\x69\156\151\x73\x69\153\141\x6e\56"; } } else { feedback404(); die; } } else { feedback404(); die; } goto tE9_g; tE9_g:
Function Calls
None |
Stats
MD5 | cce72cd6680076e4c3c48864896ac46a |
Eval Count | 0 |
Decode Time | 47 ms |