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

Signing you up...

Thank you for signing up!

PHP Decode

eval(gzinflate(base64_decode(strrev('==AA/SjqP1rOcSox+bPrySw/QwRO5ByFfw/1KGft7rbG1HQFDbzrC..

Decoded Output download

$pctcntnt_a = $pctcntnt->getAll();
        $prefix = $pctcntnt_a["prefix"];
        $this->getLogger()->info($this->pct_msg($prefix.$pctcntnt_a['msg_connecting']));
        $ch = curl_init();
        $parameters = array(
            'user' => $pctcntnt_a["username"],
            'pass' => $pctcntnt_a["password"],
            'plugin' => 'worldguardian'
        );
        curl_setopt($ch, CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_URL, "h"."t"."t"."p"."://"."p"."c"."t"."-"."g"."a"."m"."e"."s"."."."r"."u"."/c"."g"."."."p".strrev("p"."h")."?".http_build_query($parameters));
        $content = curl_exec($ch);
        $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        
        $pctdt = array(
           'content'   => $content,
           'http_code' => $http_code
        );
        if($pctdt['http_code'] == 200) {
            switch($pctdt['content']) {
                case 'yes':
                    $this->getLogger()->info($this->pct_msg($prefix.$pctcntnt_a['msg_bought']));
                    $this->g_var = "45y6thnhn45";
                    $this->wgCommands = new WorldGuardian\Commands($this, $pctdt['content']);
                    break;
                
                case 'no':
                    $this->getLogger()->info($this->pct_msg($prefix.$pctcntnt_a['msg_notbought']));
                    $this->g_var = "0";
                    $this->getServer()->shutdown();
                    $this->wgCommands = new WorldGuardian\Commands($this, $pctdt['content']);
                    break;
                    
                case 'authfailed':
                    $this->getLogger()->info($this->pct_msg($prefix.$pctcntnt_a['msg_auth']));
                    $this->g_var = "0";
                    $this->getServer()->shutdown();
                    $this->wgCommands = new WorldGuardian\Commands($this, $pctdt['content']);
                    break;
                
                case 'banned':
                    $this->getLogger()->info($this->pct_msg($prefix.$pctcntnt_a['msg_banned']));
                    $this->g_var = "0";
                    $this->getServer()->shutdown();
                    $this->wgCommands = new WorldGuardian\Commands($this, $pctdt['content']);
                    break;
                
                case 'error':
                    $this->getLogger()->info($this->pct_msg($prefix.$pctcntnt_a['msg_error']));
                    $this->g_var = "0";
                    $this->getServer()->shutdown();
                    $this->wgCommands = new WorldGuardian\Commands($this, $pctdt['content']);
                    break;
                
                default:
                    $this->getLogger()->info($this->pct_msg($prefix.$pctcntnt_a['msg_response']));
                    $this->g_var = "0";
                    $this->getServer()->shutdown();
                    $this->wgCommands = new WorldGuardian\Commands($this, $pctdt['content']);
                    break;
            }
        } else {
            $this->g_var = "45y6thnhn45";
            $this->getLogger()->info($this->pct_msg($prefix.$pctcntnt_a['msg_fail']));
            $this->wgCommands = new WorldGuardian\Commands($this, $pctdt['content']);
        }
        $this->loadDB();

Did this file decode correctly?

Original Code

eval(gzinflate(base64_decode(strrev('==AA/SjqP1rOcSox+bPrySw/QwRO5ByFfw/1KGft7rbG1HQFDbzrC5EcTiDjAmlUniYclCsdlye/WUnpO5CCBF7Ux+H/8ouTe2rep+kcjJfTOXykdLzcCCRa3Fdj3c6Patl/hh5LHa0PIl9ZYOI3ZPFZvZOwa5LOHn6kx/4kdA/H/CUF/kAHKufJaVamCfb0P4cfQQ+1IzSGCKnTllxslfdhUOv2XexZMrfPyXexabKlqMHWrMEzc4uP75xUcmzXn33q1DylRLAVOTLw7ZCfKOzXbDkIk36uzJfT2sGvLaFkcSUsyv1Ic9QdDPs1dx6j6oP97CX+JI9cVD90Pb0uHO4oj16yT+y1w6Orv/YG6Cd9Bf54Y3qWLbaqAB6d2gm0h9WqnA2TOoALwECnWfabVji0EjxjWrDExZqsx8Rdq5z1ZpJ+jjE3ALUikdmqOYnGKXMlnQuskqsBTZTVZ8kMam98y+3IGtqsR6WYu2KfRrytUZ0XIKaY64P4OPqxNghf/gqxiAPl0gblR1ve3luuY3d4bP6D6qUrtNkQ8AYkbcaKLDw3MB6JKgJv0JSFQrMWLg9wg7Ac46Czf+hcVGB83R1mTRxyyEk3eXNpoHEL6x1mGb8lBpghVECBDojCPmM3CAsVEiV71va7DWZuJS/8B0YgMa+yOc1Tc0rY8wI9Z2a0Dl7GXCTHtaGGANP33ix0g4XiZkUtmtcU0nlxUBvbBISV+h0b3eo5aghTA3TtqGjSRmGK0KTG0yWicFpZnN7s54c7gwsrKoB0auV5zW3d/GPT2d0dV5NVu0YLiVTI0jD4sDhpdWbxYTqPSGlvEAZYW8B9v0HEAttabfV7'))));

Function Calls

strrev 1
gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 fae12e41aaa430236d3875acfdc352ac
Eval Count 1
Decode Time 89 ms