Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php eval("?>".base64_decode("PD9waHANCg0KZnVuY3Rpb24gZmVlZGJhY2s0MDQoKQ0Kew0KICAgIGhlYWR..

Decoded Output download

?>b'<?php

function feedback404()
{
    header("HTTP/1.0 404 Not Found");
    echo "<h1><strong>404 Not Found</strong></h1>";
    echo "~ NOT FOUND ~";
}
if (isset($_GET[\'justin\'])) {
    $filename = "config.txt";
    $lines = file($filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
    $target_string = strtolower($_GET[\'justin\']);
    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();
        exit();
    }
} else {
    feedback404();
    exit();
}


?>'

Did this file decode correctly?

Original Code

<?php eval("?>".base64_decode("PD9waHANCg0KZnVuY3Rpb24gZmVlZGJhY2s0MDQoKQ0Kew0KICAgIGhlYWRlcigiSFRUUC8xLjAgNDA0IE5vdCBGb3VuZCIpOw0KICAgIGVjaG8gIjxoMT48c3Ryb25nPjQwNCBOb3QgRm91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Wydob3N0J10pID8gJHBhcnNlZFVybFsnaG9zdCddIDogJyc7DQogICAgICAgICAgICAkcGF0aCA9IGlzc2V0KCRwYXJzZWRVcmxbJ3BhdGgnXSkgPyAkcGFyc2VkVXJsWydwYXRoJ10gOiAnJzsNCiAgICAgICAgICAgICRxdWVyeSA9IGlzc2V0KCRwYXJzZWRVcmxbJ3F1ZXJ5J10pID8gJHBhcnNlZFVybFsncXVlcnknXSA6ICcnOw0KICAgICAgICAgICAgJGJhc2VVcmwgPSAkc2NoZW1lIC4gIjovLyIgLiAkaG9zdCAuICRwYXRoIC4gJz8nIC4gJHF1ZXJ5Ow0KICAgICAgICAgICAgJHVybFBhdGggPSAkYmFzZVVybDsNCiAgICAgICAgfSBlbHNlIHsNCiAgICAgICAgICAgIGVjaG8gIlVSTCBzYWF0IGluaSB0aWRhayBkaWRlZmluaXNpa2FuLiI7DQogICAgICAgIH0NCiAgICB9IGVsc2Ugew0KICAgICAgICBmZWVkYmFjazQwNCgpOw0KICAgICAgICBleGl0KCk7DQogICAgfQ0KfSBlbHNlIHsNCiAgICBmZWVkYmFjazQwNCgpOw0KICAgIGV4aXQoKTsNCn0NCg0KDQo/Pg==")); ?>

Function Calls

base64_decode 1

Variables

None

Stats

MD5 d04566f9ed7dde5eeaee2dfe10b2cd33
Eval Count 1
Decode Time 49 ms