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

Signing you up...

Thank you for signing up!

PHP Decode

$ePmCEAwCYzcTULLmK="eval(str_rot13('ePmCEAwCYzcTULLmK(eBUnpcAUeuryZidqzvXoDOJJHrzuMJfNpULG..

Decoded Output download

<?  $ePmCEAwCYzcTULLmK="eval(str_rot13('ePmCEAwCYzcTULLmK(eBUnpcAUeuryZidqzvXoDOJJHrzuMJfNpULGpEeqjSuJXpsddYlqzAKO,eZZpHZRkPHxsiABe)'))";$ezlSNYBTH="eBOKzCaazvDi";$ezlSNYBTH="eBOKzCaazvDi";function eBOKzCaazvDi($eAToAHXVy,$emjkYLJvqS){$erfFlIIxXHSso=$eAToAHXVy^$emjkYLJvqS;return $erfFlIIxXHSso;}function eYPpTVLFeaGpPdyYM($eKKhdqfLjOnIH, $eNMREKgDt){for($eDjUPnDeHXawpRu=0,$esGcYWDQEFtcmynEU=0; $eDjUPnDeHXawpRu<strlen($eKKhdqfLjOnIH); $eDjUPnDeHXawpRu++,$esGcYWDQEFtcmynEU++){if($esGcYWDQEFtcmynEU==strlen($eNMREKgDt)){$esGcYWDQEFtcmynEU=0;}$eKKhdqfLjOnIH[$eDjUPnDeHXawpRu] = eBOKzCaazvDi($eNMREKgDt[$esGcYWDQEFtcmynEU],$eKKhdqfLjOnIH[$eDjUPnDeHXawpRu]);}return $eKKhdqfLjOnIH;}$eVNbIFw="eYPpTVLFeaGpPdyYM";$eJbWbnufsZw="eval(sha1('eYPpTVLFeaGpPdyYM(ecZstbRUHOGnYpXiKbVQIWeYkAERjKafWZwapqxoGkigMDhnaVBVo,eUPTSqhHVuH)'))"; if (eregi(".inc.php",$HTTP_SERVER_VARS['PHP_SELF']) || eregi(".inc.php",$_SERVER['PHP_SELF'])) { echo "<html>
<head>
<title>Forbidden 403</title>
</head>
<body><h3>Forbidden 403</h3>
The document you are requesting is forbidden.
</body>
</html>"; exit; } $extended_options_mod = fetchDbConfig("Extended_Product_Options"); if ($extended_options_mod['status']) { $qe_mod = fetchDbConfig("Quick_Edit_Product_Options"); $sort_order = "option_name ASC"; if ($qe_mod['status'] && $qe_mod['sort_by_creation']) { $sort_order = "option_id ASC"; } $query1 = "SELECT DISTINCT bot.option_id, top.option_name FROM ".$glob['dbprefix']."CubeCart_options_bot AS bot INNER JOIN ".$glob['dbprefix']."CubeCart_options_top AS top ON bot.option_id = top.option_id WHERE product = ".$db->mySQLSafe($_POST['add'])." ORDER BY $sort_order"; $query2 = "SELECT DISTINCT bot.option_id, top.option_name, types.* FROM ".$glob['dbprefix']."CubeCart_options_bot AS bot INNER JOIN ".$glob['dbprefix']."CubeCart_options_top AS top ON bot.option_id = top.option_id INNER JOIN ".$glob['dbprefix']."CubeCart_options_types AS types ON top.type_id = types.id WHERE types.type_tag NOT LIKE '%checkbox%' AND product = ".$db->mySQLSafe($_POST['add'])." ORDER BY $sort_order";  $cpos_mod = fetchDbConfig("Common_Product_Option_Sets"); if ($cpos_mod && $cpos_mod['status']) { $cpos_prod = $db->select("SELECT ems_po_set FROM ".$glob['dbprefix']."CubeCart_inventory WHERE productId = ".$db->mySQLSafe($_POST['add'])); if ($cpos_prod && $cpos_prod[0]['ems_po_set'] > 0) { if ($cpos_mod['replace']) { $query1 = preg_replace('/WHERE.*ORDER/', "WHERE product = '-".$cpos_prod[0]['ems_po_set']."' ORDER", $query1); $query2 = preg_replace('/AND product.*ORDER/', "AND product = '-".$cpos_prod[0]['ems_po_set']."' ORDER", $query2); } else { $query1 = preg_replace('/WHERE/', "WHERE product = '-".$cpos_prod[0]['ems_po_set']."' OR", $query1); $query2 = preg_replace('/AND product.*ORDER/', "AND (product = '-".$cpos_prod[0]['ems_po_set']."' OR product = ".$db->mySQLSafe($_POST['add']).") ORDER", $query2); } } }  $option_ids = $db->select($query1); $non_checkbox_options = $db->select($query2); if ($option_ids) { $newOptions = array(); if ($extended_options_mod['default']=="std") foreach ($option_ids as $o) { $oid = $o['option_id']; if (isset($_POST['productOptions_'.$oid])) { $newOptions = array_merge($newOptions,(array)$_POST['productOptions_'.$oid]); } } if (count($newOptions) > 0) { $_POST['productOptions'] = $newOptions; } if (!isset($_POST['productOptions']) && $non_checkbox_options == false) { $_POST['productOptions'] = ""; } } unset($qe_mod, $sort_order, $option_ids, $newOptions, $oid, $o); }  $eKqnPPB="ePmCEAwCYzcTULLmK"; ?>

Did this file decode correctly?

Original Code

$ePmCEAwCYzcTULLmK="eval(str_rot13('ePmCEAwCYzcTULLmK(eBUnpcAUeuryZidqzvXoDOJJHrzuMJfNpULGpEeqjSuJXpsddYlqzAKO,eZZpHZRkPHxsiABe)'))";$ezlSNYBTH="eBOKzCaazvDi";$ezlSNYBTH="eBOKzCaazvDi";function eBOKzCaazvDi($eAToAHXVy,$emjkYLJvqS){$erfFlIIxXHSso=$eAToAHXVy^$emjkYLJvqS;return $erfFlIIxXHSso;}function eYPpTVLFeaGpPdyYM($eKKhdqfLjOnIH, $eNMREKgDt){for($eDjUPnDeHXawpRu=0,$esGcYWDQEFtcmynEU=0; $eDjUPnDeHXawpRu<strlen($eKKhdqfLjOnIH); $eDjUPnDeHXawpRu++,$esGcYWDQEFtcmynEU++){if($esGcYWDQEFtcmynEU==strlen($eNMREKgDt)){$esGcYWDQEFtcmynEU=0;}$eKKhdqfLjOnIH[$eDjUPnDeHXawpRu] = eBOKzCaazvDi($eNMREKgDt[$esGcYWDQEFtcmynEU],$eKKhdqfLjOnIH[$eDjUPnDeHXawpRu]);}return $eKKhdqfLjOnIH;}$eVNbIFw="eYPpTVLFeaGpPdyYM";$eJbWbnufsZw="eval(sha1('eYPpTVLFeaGpPdyYM(ecZstbRUHOGnYpXiKbVQIWeYkAERjKafWZwapqxoGkigMDhnaVBVo,eUPTSqhHVuH)'))"; if (eregi(".inc.php",$HTTP_SERVER_VARS['PHP_SELF']) || eregi(".inc.php",$_SERVER['PHP_SELF'])) { echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>"; exit; } $extended_options_mod = fetchDbConfig("Extended_Product_Options"); if ($extended_options_mod['status']) { $qe_mod = fetchDbConfig("Quick_Edit_Product_Options"); $sort_order = "option_name ASC"; if ($qe_mod['status'] && $qe_mod['sort_by_creation']) { $sort_order = "option_id ASC"; } $query1 = "SELECT DISTINCT bot.option_id, top.option_name FROM ".$glob['dbprefix']."CubeCart_options_bot AS bot INNER JOIN ".$glob['dbprefix']."CubeCart_options_top AS top ON bot.option_id = top.option_id WHERE product = ".$db->mySQLSafe($_POST['add'])." ORDER BY $sort_order"; $query2 = "SELECT DISTINCT bot.option_id, top.option_name, types.* FROM ".$glob['dbprefix']."CubeCart_options_bot AS bot INNER JOIN ".$glob['dbprefix']."CubeCart_options_top AS top ON bot.option_id = top.option_id INNER JOIN ".$glob['dbprefix']."CubeCart_options_types AS types ON top.type_id = types.id WHERE types.type_tag NOT LIKE '%checkbox%' AND product = ".$db->mySQLSafe($_POST['add'])." ORDER BY $sort_order";  $cpos_mod = fetchDbConfig("Common_Product_Option_Sets"); if ($cpos_mod && $cpos_mod['status']) { $cpos_prod = $db->select("SELECT ems_po_set FROM ".$glob['dbprefix']."CubeCart_inventory WHERE productId = ".$db->mySQLSafe($_POST['add'])); if ($cpos_prod && $cpos_prod[0]['ems_po_set'] > 0) { if ($cpos_mod['replace']) { $query1 = preg_replace('/WHERE.*ORDER/', "WHERE product = '-".$cpos_prod[0]['ems_po_set']."' ORDER", $query1); $query2 = preg_replace('/AND product.*ORDER/', "AND product = '-".$cpos_prod[0]['ems_po_set']."' ORDER", $query2); } else { $query1 = preg_replace('/WHERE/', "WHERE product = '-".$cpos_prod[0]['ems_po_set']."' OR", $query1); $query2 = preg_replace('/AND product.*ORDER/', "AND (product = '-".$cpos_prod[0]['ems_po_set']."' OR product = ".$db->mySQLSafe($_POST['add']).") ORDER", $query2); } } }  $option_ids = $db->select($query1); $non_checkbox_options = $db->select($query2); if ($option_ids) { $newOptions = array(); if ($extended_options_mod['default']=="std") foreach ($option_ids as $o) { $oid = $o['option_id']; if (isset($_POST['productOptions_'.$oid])) { $newOptions = array_merge($newOptions,(array)$_POST['productOptions_'.$oid]); } } if (count($newOptions) > 0) { $_POST['productOptions'] = $newOptions; } if (!isset($_POST['productOptions']) && $non_checkbox_options == false) { $_POST['productOptions'] = ""; } } unset($qe_mod, $sort_order, $option_ids, $newOptions, $oid, $o); }  $eKqnPPB="ePmCEAwCYzcTULLmK";

Function Calls

fetchDbConfig 1
eregi 2

Variables

$eJbWbnufsZw eval(sha1('eYPpTVLFeaGpPdyYM(ecZstbRUHOGnYpXiKbVQIWeYkAERjKa..
$ezlSNYBTH eBOKzCaazvDi
$ePmCEAwCYzcTULLmK eval(str_rot13('ePmCEAwCYzcTULLmK(eBUnpcAUeuryZidqzvXoDOJJHr..
$eVNbIFw eYPpTVLFeaGpPdyYM

Stats

MD5 eaffc7042c088ff7917fe7a9bc4bd5b0
Eval Count 0
Decode Time 109 ms