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 D9; Ef: require "\154\151\142\x2f\143\x6f\x64\145\x2f" . $d6[$_GET["\162\157\165\x74..

Decoded Output download

<?   goto D9; Ef: require "lib/code/" . $d6[$_GET["route"]]; Ee: require F6 . "lib/code/5706.php"; function D5($name) { goto e3; D0: fd: return A4 . $name; goto E5; D8: $cc = false; $F0 = 0; A9: if (!($F0 = strpos($Cd, "`", $F0))) { goto f4; } if (!$cc) { goto d7; } goto ce; c7: $C3 = "<@#&"; $Cd = str_replace("<?php", $C3, $Cd); $Cd = str_replace("<?", "<?php echo ", $Cd); $Cd = str_replace("<?php echo  ", "<?php echo ", $Cd); $Cd = str_replace($C3, "<?php", $Cd); goto D8; C9: $Cd = substr($Cd, 0, $F0) . $e7 . substr($Cd, $F0 + 1); $cc = !$cc; goto A9; f4: file_put_contents(A4 . $name, $Cd); goto D0; e3: if (!(substr($name, -4) != ".tpl")) { goto Ec; } $name .= ".tpl"; Ec: if (!(file_exists($name) and filemtime($name) > @filemtime(A4 . $name))) { goto fd; } $Cd = file_get_contents($name); goto c7; ce: $e7 = "') ?>"; goto A3; d7: $e7 = "<?php echo t('"; A3: goto C9; E5: } goto c8; F6: $hash_cache_maxtime = 30 * 60; if (!@(!$_GET["route"])) { goto Ad; } D0(); Ad: $aa = @$f0; goto b8; F0: die; A4: $Be = @disk_free_space("."); if (!($Be > 1)) { goto a3; } if (!(($Be = round(disk_free_space(".") / 1024 / 1024)) < 50)) { goto f8; } goto ad; F8: define("full_platform_load", true); c2: require_once "lib/code/c09a.php"; if (!(@$_GET["route"] != "login" && !DE())) { goto B3; } if (!function_exists("HaveAdminAccess")) { goto C4; } goto c1; b8: function EC() { echo F2(); } function F2() { return "index.php?rd=" . (rand(1, 10000000) * 2 + @$_GET["rd"] % 2) . "&route="; } if (empty($_POST)) { goto f7; } foreach ($_POST as &$f7) { $f7 = str_replace(".//", "://", $f7); Ac: } e1: goto A0; A0: f7: if (@$_GET["route"]) { goto Aa; } require F6 . "lib/code/c7aa.php"; goto Ee; Aa: goto Ef; ad: die("Disk free space too low ({$Be} Mb)"); f8: a3: function bf($A3) { header("Location: " . F2() . $A3); die; } if (!(@$_GET["route"] == "tasks" || @$_GET["route"] == "ins" || @$_GET["route"] == "tree" || @$_GET["delete_entities"] || @$_GET["add"] || !C0())) { goto c2; } goto F8; c1: die("ACCESS DENIED. Log into your system as Admin"); C4: bF("login"); B3: $http_cache = true; goto F6; D9: define("A4", "lib/tpl/"); define("F6", getcwd() . "/"); $d6 = array("ajax" => "7a49.php", "feed" => "f536.php", "upload" => "bc81.php", "css" => "5542.php", "ltree" => "7b9d.php", "wiz" => "68c2.php", "test" => "a586.php", "widget" => "e69a.php", "db" => "c452.php", "editor" => "7705.php", "howcron" => "80b6.php", "import" => "717b.php", "import2" => "5267.php", "ins" => "d028.php", "log" => "3d2a.php", "login" => "ef85.php", "newsite" => "9111.php", "replace" => "596f.php", "script" => "a45f.php", "settings" => "b52c.php", "tasks" => "2ade.php", "title" => "c7aa.php", "tree" => "99f4.php", "wizard1" => "cc08.php", "wizard2" => "af94.php"); if (!($Fc = @$_GET["op"])) { goto A4; } require "lib/code/" . $d6[$Fc]; goto F0; c8: function c0() { $d3 = sha1(PHP_VERSION_ID . filemtime("index.php")); return @$_COOKIE["liid"] == $d3; } ?>

Did this file decode correctly?

Original Code

 goto D9; Ef: require "\154\151\142\x2f\143\x6f\x64\145\x2f" . $d6[$_GET["\162\157\165\x74\x65"]]; Ee: require F6 . "\x6c\151\142\x2f\143\157\x64\145\57\x35\67\x30\66\56\160\150\x70"; function D5($name) { goto e3; D0: fd: return A4 . $name; goto E5; D8: $cc = false; $F0 = 0; A9: if (!($F0 = strpos($Cd, "\140", $F0))) { goto f4; } if (!$cc) { goto d7; } goto ce; c7: $C3 = "\74\100\x23\46"; $Cd = str_replace("\x3c\77\x70\150\x70", $C3, $Cd); $Cd = str_replace("\74\x3f", "\74\x3f\160\150\160\40\145\143\150\157\x20", $Cd); $Cd = str_replace("\74\77\160\150\x70\x20\x65\143\x68\157\x20\x20", "\74\x3f\x70\x68\x70\40\145\x63\x68\157\x20", $Cd); $Cd = str_replace($C3, "\74\x3f\x70\150\160", $Cd); goto D8; C9: $Cd = substr($Cd, 0, $F0) . $e7 . substr($Cd, $F0 + 1); $cc = !$cc; goto A9; f4: file_put_contents(A4 . $name, $Cd); goto D0; e3: if (!(substr($name, -4) != "\56\x74\x70\154")) { goto Ec; } $name .= "\56\x74\x70\x6c"; Ec: if (!(file_exists($name) and filemtime($name) > @filemtime(A4 . $name))) { goto fd; } $Cd = file_get_contents($name); goto c7; ce: $e7 = "\47\51\x20\x3f\x3e"; goto A3; d7: $e7 = "\x3c\x3f\160\150\x70\x20\x65\x63\x68\157\x20\164\50\x27"; A3: goto C9; E5: } goto c8; F6: $hash_cache_maxtime = 30 * 60; if (!@(!$_GET["\x72\x6f\x75\164\x65"])) { goto Ad; } D0(); Ad: $aa = @$f0; goto b8; F0: die; A4: $Be = @disk_free_space("\56"); if (!($Be > 1)) { goto a3; } if (!(($Be = round(disk_free_space("\x2e") / 1024 / 1024)) < 50)) { goto f8; } goto ad; F8: define("\146\165\x6c\154\x5f\160\x6c\141\x74\146\x6f\162\155\x5f\154\157\x61\144", true); c2: require_once "\154\x69\142\57\x63\157\144\x65\x2f\x63\x30\x39\141\x2e\160\150\x70"; if (!(@$_GET["\162\157\x75\x74\x65"] != "\x6c\157\147\151\156" && !DE())) { goto B3; } if (!function_exists("\110\141\166\x65\x41\x64\155\151\156\101\143\x63\145\163\x73")) { goto C4; } goto c1; b8: function EC() { echo F2(); } function F2() { return "\151\156\144\145\x78\56\x70\x68\160\77\162\x64\x3d" . (rand(1, 10000000) * 2 + @$_GET["\162\x64"] % 2) . "\x26\162\157\165\x74\145\x3d"; } if (empty($_POST)) { goto f7; } foreach ($_POST as &$f7) { $f7 = str_replace("\56\x2f\x2f", "\x3a\57\x2f", $f7); Ac: } e1: goto A0; A0: f7: if (@$_GET["\x72\157\165\x74\145"]) { goto Aa; } require F6 . "\154\151\142\x2f\143\157\144\145\x2f\x63\67\141\x61\x2e\x70\x68\x70"; goto Ee; Aa: goto Ef; ad: die("\104\151\x73\x6b\40\146\162\x65\x65\40\163\160\141\143\x65\40\x74\157\x6f\40\x6c\x6f\167\40\x28{$Be}\40\x4d\x62\x29"); f8: a3: function bf($A3) { header("\114\157\x63\141\x74\x69\x6f\156\x3a\x20" . F2() . $A3); die; } if (!(@$_GET["\162\157\x75\x74\x65"] == "\x74\x61\163\x6b\x73" || @$_GET["\x72\157\x75\x74\x65"] == "\x69\x6e\x73" || @$_GET["\x72\x6f\x75\164\145"] == "\164\162\145\145" || @$_GET["\x64\145\154\x65\x74\x65\x5f\x65\156\x74\x69\164\x69\x65\163"] || @$_GET["\x61\x64\x64"] || !C0())) { goto c2; } goto F8; c1: die("\101\103\103\x45\123\x53\x20\x44\105\x4e\x49\105\104\x2e\x20\114\x6f\147\x20\x69\156\x74\x6f\40\x79\157\165\x72\x20\163\171\163\164\x65\155\40\141\x73\40\x41\144\x6d\x69\x6e"); C4: bF("\x6c\157\147\151\x6e"); B3: $http_cache = true; goto F6; D9: define("\x41\64", "\154\x69\x62\57\164\x70\x6c\57"); define("\106\66", getcwd() . "\57"); $d6 = array("\141\152\x61\x78" => "\x37\x61\x34\x39\56\160\x68\x70", "\146\145\x65\144" => "\146\65\x33\66\56\x70\150\160", "\x75\x70\x6c\x6f\x61\x64" => "\x62\143\x38\x31\x2e\160\x68\160", "\143\x73\163" => "\x35\65\x34\62\x2e\x70\x68\160", "\x6c\x74\x72\x65\x65" => "\67\x62\x39\x64\56\160\150\160", "\167\x69\172" => "\x36\70\143\62\56\x70\150\x70", "\x74\x65\x73\x74" => "\141\65\x38\x36\x2e\x70\x68\x70", "\x77\151\x64\147\145\x74" => "\x65\66\71\x61\56\160\x68\x70", "\144\x62" => "\143\64\x35\x32\x2e\160\x68\160", "\145\x64\151\164\157\162" => "\67\67\x30\65\56\x70\x68\160", "\150\157\x77\x63\162\157\x6e" => "\x38\x30\x62\66\x2e\160\x68\x70", "\x69\x6d\160\x6f\162\x74" => "\67\x31\67\142\56\x70\x68\160", "\x69\x6d\x70\x6f\162\164\x32" => "\x35\x32\66\67\x2e\x70\150\160", "\151\156\x73" => "\x64\x30\x32\70\56\x70\x68\x70", "\x6c\157\x67" => "\x33\x64\62\141\x2e\x70\x68\160", "\x6c\x6f\147\151\x6e" => "\x65\146\x38\x35\56\160\150\x70", "\156\x65\x77\x73\151\x74\x65" => "\71\x31\x31\x31\x2e\160\150\160", "\x72\x65\160\x6c\141\x63\145" => "\x35\x39\x36\x66\x2e\x70\150\x70", "\x73\x63\162\x69\160\x74" => "\x61\64\65\x66\x2e\160\x68\160", "\x73\145\x74\164\x69\x6e\x67\163" => "\x62\65\62\x63\56\160\150\160", "\164\141\x73\x6b\x73" => "\x32\x61\x64\x65\x2e\160\x68\x70", "\x74\151\x74\x6c\x65" => "\x63\67\x61\141\56\160\150\x70", "\164\162\145\145" => "\71\71\x66\64\x2e\x70\x68\x70", "\x77\151\172\x61\x72\x64\61" => "\x63\143\x30\x38\56\x70\x68\160", "\167\x69\172\x61\162\144\62" => "\141\x66\x39\64\x2e\160\150\160"); if (!($Fc = @$_GET["\x6f\160"])) { goto A4; } require "\154\151\142\57\x63\x6f\x64\x65\57" . $d6[$Fc]; goto F0; c8: function c0() { $d3 = sha1(PHP_VERSION_ID . filemtime("\x69\x6e\x64\145\170\x2e\x70\x68\160")); return @$_COOKIE["\154\151\x69\144"] == $d3; }

Function Calls

None

Variables

None

Stats

MD5 d8a4e0aa4c7ad471712f7cf89464efd1
Eval Count 0
Decode Time 120 ms