Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* Casas Bahia v1.0 */ ${"GLOBALS"}["plngiv"]="urli";${"GLOBALS"}["moefgydxxmd..
Decoded Output download
<?php /*
Casas Bahia v1.0
*/
${"GLOBALS"}["plngiv"]="urli";${"GLOBALS"}["moefgydxxmd"]="skullid";${"GLOBALS"}["fflxdxqii"]="cofigo";${"GLOBALS"}["uqrhwlxiuxl"]="result";${"GLOBALS"}["hfgdmqcqrni"]="checkout";${"GLOBALS"}["xetfdrs"]="arch";${"GLOBALS"}["csekhvk"]="url";${"GLOBALS"}["ogjkebbab"]="produto";${"GLOBALS"}["spwlyxdwomk"]="sqlTest";${"GLOBALS"}["pmyzeyoftnd"]="cor";${"GLOBALS"}["eqgcmeut"]="sql";${"GLOBALS"}["yewlmvo"]="style";${"GLOBALS"}["ojdbury"]="dbconfig";${"GLOBALS"}["jpeeedwwvkmj"]="device";${"GLOBALS"}["wwpxggosgx"]="verify_blacklist";${"GLOBALS"}["sfxqvfmd"]="id";$ugdkspgsws="dbconfig";${"GLOBALS"}["xxftceo"]="config";${"GLOBALS"}["hsvqmmdudxd"]="config";${"GLOBALS"}["txrjkawqbn"]="config";${"GLOBALS"}["rkhfmcik"]="pdo";${"GLOBALS"}["odgjuhxlu"]="http";session_start();${"GLOBALS"}["xobxyblsdu"]="ip";$hcvhntk="url";$thnzlvfkzw="version";date_default_timezone_set("America/Sao_Paulo");${$thnzlvfkzw}="Casas Bahia v1.0";${"GLOBALS"}["jxocifutos"]="url";${"GLOBALS"}["dfuyvmp"]="dbconfig";${"GLOBALS"}["qvpbsu"]="produto";${${"GLOBALS"}["xobxyblsdu"]}=$_SERVER["REMOTE_ADDR"];$xinetknvp="config";$xwqndvjfueo="detect";${${"GLOBALS"}["odgjuhxlu"]}=isset($_SERVER["HTTPS"])?"https://":"http://";${"GLOBALS"}["jvncbhykqho"]="urlbase";${$hcvhntk}=$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"];${${"GLOBALS"}["jvncbhykqho"]}=${${"GLOBALS"}["odgjuhxlu"]}.str_replace("index.php","",${${"GLOBALS"}["jxocifutos"]});if(file_exists(__DIR__."/core/core.php")){require __DIR__."/core/core.php";}else{require __DIR__."/core/setup.php";exit();}${${"GLOBALS"}["rkhfmcik"]}=new PDO("mysql:host=".${${"GLOBALS"}["txrjkawqbn"]}["mysql_host"].";dbname=".${${"GLOBALS"}["xxftceo"]}["mysql_dbname"],${${"GLOBALS"}["hsvqmmdudxd"]}["mysql_user"],${$xinetknvp}["mysql_password"]);${"GLOBALS"}["sphrnemft"]="id";require"vendor/autoload.php";use Source\Modells\cart;require"vendor/phpmailer/autoload.php";${${"GLOBALS"}["sphrnemft"]}=isset($_COOKIE["codigo"])?$_COOKIE["codigo"]:false;if(isset($_GET["uid"])){${${"GLOBALS"}["sfxqvfmd"]}=addslashes($_GET["uid"]);$irpphkwc="id";setcookie("codigo",${$irpphkwc},time()+3600*24,"/");}${${"GLOBALS"}["wwpxggosgx"]}=$pdo->query("select id from blacklist where ip = '$ip'");if($verify_blacklist->rowCount()>0){echo"<title>Acess Daned</title>";echo"<h1>Sorry, but you do not have permission to access</h1>";exit();}require"vendor/lib/boletosPHP.php";require"vendor/mobile_detect/Mobile_Detect.php";${$xwqndvjfueo}=new Mobile_Detect;${"GLOBALS"}["bwxyyol"]="style";$gikrtsyctmve="sql";if($detect->isMobile()&&!$detect->isTablet()){${"GLOBALS"}["phgbqfk"]="device";${${"GLOBALS"}["phgbqfk"]}="Mobile";}elseif($detect->isTablet()){$zeosretx="device";${$zeosretx}="Tablet";}else{${${"GLOBALS"}["jpeeedwwvkmj"]}="Computador";}\Source\Modells\crawlers::protect();if(isset($_GET[GET_NAME_PRODUCT_OPEN])){$demqjhlewohm="idNameProduct";${"GLOBALS"}["lhwyefb"]="idNameProduct";${$demqjhlewohm}=$_GET[GET_NAME_PRODUCT_OPEN];\Source\Modells\produtos::open_cart_new(${${"GLOBALS"}["lhwyefb"]});exit();}${${"GLOBALS"}["dfuyvmp"]}=$pdo->query("select * from configs");${${"GLOBALS"}["ojdbury"]}=$dbconfig->fetch();${"GLOBALS"}["hjkcrfn"]="url";switch(${$ugdkspgsws}["theme"]){case"black";${${"GLOBALS"}["yewlmvo"]}="views/assets/css/styles.9740ee1983b4f1aea2d2.css";break;default;${${"GLOBALS"}["bwxyyol"]}="views/assets/css/styles.9740ee1983b4f1aea2d2-original.css";break;}${${"GLOBALS"}["eqgcmeut"]}="select * from produtos where codigo = '$id' and `index` = '1'";if(isset($_GET["cor"])){${${"GLOBALS"}["pmyzeyoftnd"]}=filter_input(INPUT_GET,"cor",FILTER_SANITIZE_STRING);$ltqopiom="cor";${"GLOBALS"}["kgkaqnufvt"]="sql";${${"GLOBALS"}["kgkaqnufvt"]}="select * from produtos where codigo = '$id' and cor = '$cor'";$_SESSION["cor"]=${$ltqopiom};}if(isset($_SESSION["cor"])){${${"GLOBALS"}["pmyzeyoftnd"]}=$_SESSION["cor"];${"GLOBALS"}["cuxxqnjdihx"]="sqlTest";${${"GLOBALS"}["spwlyxdwomk"]}="select * from produtos where codigo = '$id' and cor = '$cor'";if(pdo()->query(${${"GLOBALS"}["cuxxqnjdihx"]})->rowCount()>0){$kfscernc="sqlTest";$zhwbypu="sql";${$zhwbypu}=${$kfscernc};}}${${"GLOBALS"}["qvpbsu"]}=$pdo->query(${$gikrtsyctmve});${${"GLOBALS"}["ogjkebbab"]}=$produto->fetch();${${"GLOBALS"}["hjkcrfn"]}=isset($_GET["url"])?explode("/",$_GET["url"]):false;if(${${"GLOBALS"}["csekhvk"]}==false or!isset(${${"GLOBALS"}["csekhvk"]}[0])){require __DIR__."/views/404.php";}else{${"GLOBALS"}["vozsncsfl"]="config";$edgqnrlmowy="url";${"GLOBALS"}["uznhfu"]="arch";${${"GLOBALS"}["xetfdrs"]}=${${"GLOBALS"}["csekhvk"]}[0];${${"GLOBALS"}["hfgdmqcqrni"]}=isset(${$edgqnrlmowy}[1])?${${"GLOBALS"}["csekhvk"]}[1]:"";if(${${"GLOBALS"}["uznhfu"]}==${${"GLOBALS"}["vozsncsfl"]}["admin"]){if(isset($_GET["unlock"])){$hbskckbg="selectUnlock";${"GLOBALS"}["xwysjke"]="unlock";${${"GLOBALS"}["xwysjke"]}=addslashes($_GET["unlock"]);${$hbskckbg}=$pdo->query("select * from `unlock` where `code` = '$unlock'");if($selectUnlock->rowCount()==0){$_SESSION["fail"]="Cdigo expirado!";redir(${${"GLOBALS"}["txrjkawqbn"]}["admin"]);exit();}else{$pdo->query("update fail set fail = '0'");$_SESSION["ok"]="Acesso ativado com sucesso!";$pdo->query("delete from `unlock` where code = '$unlock'");redir(${${"GLOBALS"}["txrjkawqbn"]}["admin"]);exit();}}require __DIR__."/views/template/index.php";}else{if(file_exists(__DIR__."/views/{$checkout}.php")){require __DIR__."/views/{$checkout}.php";}elseif(file_exists(__DIR__."/views/{$arch}.php")){require __DIR__."/views/{$arch}.php";}else{${"GLOBALS"}["vxxktqexjtst"]="verifica_dados";${${"GLOBALS"}["vxxktqexjtst"]}=$pdo->query("select * from encurtador where name = '$arch'");if($verifica_dados->rowCount()==0){require"views/404.php";}else{${"GLOBALS"}["eeihdqkoqi"]="select";${"GLOBALS"}["kxnfuley"]="verifica_dados";${${"GLOBALS"}["kxnfuley"]}=$verifica_dados->fetch();$valcezgdn="result";${${"GLOBALS"}["eeihdqkoqi"]}=$pdo->query("select * from produtos where id = '{$verifica_dados['produto_id']}'");${${"GLOBALS"}["uqrhwlxiuxl"]}=$select->fetch();${${"GLOBALS"}["fflxdxqii"]}=${${"GLOBALS"}["uqrhwlxiuxl"]}["codigo"];pdo()->prepare("update encurtador set clicks = (clicks+1) where `name` = ?")->execute([${${"GLOBALS"}["xetfdrs"]}]);${${"GLOBALS"}["moefgydxxmd"]}=${$valcezgdn}["skullid"];${${"GLOBALS"}["plngiv"]}="?".GET_NAME_PRODUCT_OPEN."=$skullid";redir(${${"GLOBALS"}["plngiv"]});}}}}
?>
Did this file decode correctly?
Original Code
<?php /*
Casas Bahia v1.0
*/
${"GLOBALS"}["plngiv"]="urli";${"GLOBALS"}["moefgydxxmd"]="skullid";${"GLOBALS"}["fflxdxqii"]="cofigo";${"GLOBALS"}["uqrhwlxiuxl"]="result";${"GLOBALS"}["hfgdmqcqrni"]="checkout";${"GLOBALS"}["xetfdrs"]="arch";${"GLOBALS"}["csekhvk"]="url";${"GLOBALS"}["ogjkebbab"]="produto";${"GLOBALS"}["spwlyxdwomk"]="sqlTest";${"GLOBALS"}["pmyzeyoftnd"]="cor";${"GLOBALS"}["eqgcmeut"]="sql";${"GLOBALS"}["yewlmvo"]="style";${"GLOBALS"}["ojdbury"]="dbconfig";${"GLOBALS"}["jpeeedwwvkmj"]="device";${"GLOBALS"}["wwpxggosgx"]="verify_blacklist";${"GLOBALS"}["sfxqvfmd"]="id";$ugdkspgsws="dbconfig";${"GLOBALS"}["xxftceo"]="config";${"GLOBALS"}["hsvqmmdudxd"]="config";${"GLOBALS"}["txrjkawqbn"]="config";${"GLOBALS"}["rkhfmcik"]="pdo";${"GLOBALS"}["odgjuhxlu"]="http";session_start();${"GLOBALS"}["xobxyblsdu"]="ip";$hcvhntk="url";$thnzlvfkzw="version";date_default_timezone_set("America/Sao_Paulo");${$thnzlvfkzw}="Casas Bahia v1.0";${"GLOBALS"}["jxocifutos"]="url";${"GLOBALS"}["dfuyvmp"]="dbconfig";${"GLOBALS"}["qvpbsu"]="produto";${${"GLOBALS"}["xobxyblsdu"]}=$_SERVER["REMOTE_ADDR"];$xinetknvp="config";$xwqndvjfueo="detect";${${"GLOBALS"}["odgjuhxlu"]}=isset($_SERVER["HTTPS"])?"https://":"http://";${"GLOBALS"}["jvncbhykqho"]="urlbase";${$hcvhntk}=$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"];${${"GLOBALS"}["jvncbhykqho"]}=${${"GLOBALS"}["odgjuhxlu"]}.str_replace("index.php","",${${"GLOBALS"}["jxocifutos"]});if(file_exists(__DIR__."/core/core.php")){require __DIR__."/core/core.php";}else{require __DIR__."/core/setup.php";exit();}${${"GLOBALS"}["rkhfmcik"]}=new PDO("mysql:host=".${${"GLOBALS"}["txrjkawqbn"]}["mysql_host"].";dbname=".${${"GLOBALS"}["xxftceo"]}["mysql_dbname"],${${"GLOBALS"}["hsvqmmdudxd"]}["mysql_user"],${$xinetknvp}["mysql_password"]);${"GLOBALS"}["sphrnemft"]="id";require"vendor/autoload.php";use Source\Modells\cart;require"vendor/phpmailer/autoload.php";${${"GLOBALS"}["sphrnemft"]}=isset($_COOKIE["codigo"])?$_COOKIE["codigo"]:false;if(isset($_GET["uid"])){${${"GLOBALS"}["sfxqvfmd"]}=addslashes($_GET["uid"]);$irpphkwc="id";setcookie("codigo",${$irpphkwc},time()+3600*24,"/");}${${"GLOBALS"}["wwpxggosgx"]}=$pdo->query("select id from blacklist where ip = '$ip'");if($verify_blacklist->rowCount()>0){echo"<title>Acess Daned</title>";echo"<h1>Sorry, but you do not have permission to access</h1>";exit();}require"vendor/lib/boletosPHP.php";require"vendor/mobile_detect/Mobile_Detect.php";${$xwqndvjfueo}=new Mobile_Detect;${"GLOBALS"}["bwxyyol"]="style";$gikrtsyctmve="sql";if($detect->isMobile()&&!$detect->isTablet()){${"GLOBALS"}["phgbqfk"]="device";${${"GLOBALS"}["phgbqfk"]}="Mobile";}elseif($detect->isTablet()){$zeosretx="device";${$zeosretx}="Tablet";}else{${${"GLOBALS"}["jpeeedwwvkmj"]}="Computador";}\Source\Modells\crawlers::protect();if(isset($_GET[GET_NAME_PRODUCT_OPEN])){$demqjhlewohm="idNameProduct";${"GLOBALS"}["lhwyefb"]="idNameProduct";${$demqjhlewohm}=$_GET[GET_NAME_PRODUCT_OPEN];\Source\Modells\produtos::open_cart_new(${${"GLOBALS"}["lhwyefb"]});exit();}${${"GLOBALS"}["dfuyvmp"]}=$pdo->query("select * from configs");${${"GLOBALS"}["ojdbury"]}=$dbconfig->fetch();${"GLOBALS"}["hjkcrfn"]="url";switch(${$ugdkspgsws}["theme"]){case"black";${${"GLOBALS"}["yewlmvo"]}="views/assets/css/styles.9740ee1983b4f1aea2d2.css";break;default;${${"GLOBALS"}["bwxyyol"]}="views/assets/css/styles.9740ee1983b4f1aea2d2-original.css";break;}${${"GLOBALS"}["eqgcmeut"]}="select * from produtos where codigo = '$id' and `index` = '1'";if(isset($_GET["cor"])){${${"GLOBALS"}["pmyzeyoftnd"]}=filter_input(INPUT_GET,"cor",FILTER_SANITIZE_STRING);$ltqopiom="cor";${"GLOBALS"}["kgkaqnufvt"]="sql";${${"GLOBALS"}["kgkaqnufvt"]}="select * from produtos where codigo = '$id' and cor = '$cor'";$_SESSION["cor"]=${$ltqopiom};}if(isset($_SESSION["cor"])){${${"GLOBALS"}["pmyzeyoftnd"]}=$_SESSION["cor"];${"GLOBALS"}["cuxxqnjdihx"]="sqlTest";${${"GLOBALS"}["spwlyxdwomk"]}="select * from produtos where codigo = '$id' and cor = '$cor'";if(pdo()->query(${${"GLOBALS"}["cuxxqnjdihx"]})->rowCount()>0){$kfscernc="sqlTest";$zhwbypu="sql";${$zhwbypu}=${$kfscernc};}}${${"GLOBALS"}["qvpbsu"]}=$pdo->query(${$gikrtsyctmve});${${"GLOBALS"}["ogjkebbab"]}=$produto->fetch();${${"GLOBALS"}["hjkcrfn"]}=isset($_GET["url"])?explode("/",$_GET["url"]):false;if(${${"GLOBALS"}["csekhvk"]}==false or!isset(${${"GLOBALS"}["csekhvk"]}[0])){require __DIR__."/views/404.php";}else{${"GLOBALS"}["vozsncsfl"]="config";$edgqnrlmowy="url";${"GLOBALS"}["uznhfu"]="arch";${${"GLOBALS"}["xetfdrs"]}=${${"GLOBALS"}["csekhvk"]}[0];${${"GLOBALS"}["hfgdmqcqrni"]}=isset(${$edgqnrlmowy}[1])?${${"GLOBALS"}["csekhvk"]}[1]:"";if(${${"GLOBALS"}["uznhfu"]}==${${"GLOBALS"}["vozsncsfl"]}["admin"]){if(isset($_GET["unlock"])){$hbskckbg="selectUnlock";${"GLOBALS"}["xwysjke"]="unlock";${${"GLOBALS"}["xwysjke"]}=addslashes($_GET["unlock"]);${$hbskckbg}=$pdo->query("select * from `unlock` where `code` = '$unlock'");if($selectUnlock->rowCount()==0){$_SESSION["fail"]="Cdigo expirado!";redir(${${"GLOBALS"}["txrjkawqbn"]}["admin"]);exit();}else{$pdo->query("update fail set fail = '0'");$_SESSION["ok"]="Acesso ativado com sucesso!";$pdo->query("delete from `unlock` where code = '$unlock'");redir(${${"GLOBALS"}["txrjkawqbn"]}["admin"]);exit();}}require __DIR__."/views/template/index.php";}else{if(file_exists(__DIR__."/views/{$checkout}.php")){require __DIR__."/views/{$checkout}.php";}elseif(file_exists(__DIR__."/views/{$arch}.php")){require __DIR__."/views/{$arch}.php";}else{${"GLOBALS"}["vxxktqexjtst"]="verifica_dados";${${"GLOBALS"}["vxxktqexjtst"]}=$pdo->query("select * from encurtador where name = '$arch'");if($verifica_dados->rowCount()==0){require"views/404.php";}else{${"GLOBALS"}["eeihdqkoqi"]="select";${"GLOBALS"}["kxnfuley"]="verifica_dados";${${"GLOBALS"}["kxnfuley"]}=$verifica_dados->fetch();$valcezgdn="result";${${"GLOBALS"}["eeihdqkoqi"]}=$pdo->query("select * from produtos where id = '{$verifica_dados['produto_id']}'");${${"GLOBALS"}["uqrhwlxiuxl"]}=$select->fetch();${${"GLOBALS"}["fflxdxqii"]}=${${"GLOBALS"}["uqrhwlxiuxl"]}["codigo"];pdo()->prepare("update encurtador set clicks = (clicks+1) where `name` = ?")->execute([${${"GLOBALS"}["xetfdrs"]}]);${${"GLOBALS"}["moefgydxxmd"]}=${$valcezgdn}["skullid"];${${"GLOBALS"}["plngiv"]}="?".GET_NAME_PRODUCT_OPEN."=$skullid";redir(${${"GLOBALS"}["plngiv"]});}}}}
?>
Function Calls
None |
Stats
MD5 | 53d01b1a00a66cd3fabf37fdaaf3638a |
Eval Count | 0 |
Decode Time | 75 ms |