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 */ namespace Source\Modells;${"\x47\x4c\x4f\x42ALS"}["x\x77\x..

Decoded Output download

<?php /* 
Casas Bahia v1.0 
*/ 
namespace Source\Modells;${"GLOBALS"}["xwisbllytg"]="cartId";class cart{private$cart;private$cartId;private$urlbase;public function __construct(){$this->urlbase=urlbase();$this->cart=$this->getCartAll();if(isset($_SESSION["cart"]["cartId"])){$this->cartId=$_SESSION["cart"]["cartId"];}else{$yyetpxut="cartId";${${"GLOBALS"}["xwisbllytg"]}=sha1($_SERVER["REMOTE_ADDR"].mt_rand());$this->updateCart("cartId",${${"GLOBALS"}["xwisbllytg"]});$this->cartId=${$yyetpxut};}}public function addProduct($dados=[]){}public function redirect($next){${"GLOBALS"}["ldipcel"]="url";${${"GLOBALS"}["ldipcel"]}=$this->urlbase.$this->cartId."/$next";header("Location: $url");exit();}public function refresh(){header("Refresh: 0");exit();}public function updateCart($name,$valor){$ywttvjmxs="valor";${"GLOBALS"}["dhrqir"]="name";$_SESSION["cart"][${${"GLOBALS"}["dhrqir"]}]=${$ywttvjmxs};}public function getCart($nome){$brnqgst="nome";return$_SESSION["cart"][${$brnqgst}];}public function getCartAll(){return isset($_SESSION["cart"])?$_SESSION["cart"]:[];}public static function manager(){return new cart();}public function unsetAll(){unset($_SESSION["cart"]);}} 
?>

Did this file decode correctly?

Original Code

<?php /*
Casas Bahia v1.0
*/
namespace Source\Modells;${"\x47\x4c\x4f\x42ALS"}["x\x77\x69\x73bll\x79\x74\x67"]="\x63a\x72\x74\x49\x64";class cart{private$cart;private$cartId;private$urlbase;public function __construct(){$this->urlbase=urlbase();$this->cart=$this->getCartAll();if(isset($_SESSION["\x63ar\x74"]["\x63\x61rt\x49\x64"])){$this->cartId=$_SESSION["\x63a\x72t"]["\x63\x61rt\x49d"];}else{$yyetpxut="c\x61\x72tI\x64";${${"\x47L\x4fBA\x4c\x53"}["\x78w\x69\x73b\x6cl\x79\x74\x67"]}=sha1($_SERVER["\x52\x45\x4d\x4f\x54E\x5fA\x44\x44R"].mt_rand());$this->updateCart("\x63\x61r\x74\x49\x64",${${"G\x4cOB\x41\x4cS"}["\x78\x77\x69sb\x6cl\x79\x74\x67"]});$this->cartId=${$yyetpxut};}}public function addProduct($dados=[]){}public function redirect($next){${"GL\x4f\x42\x41\x4cS"}["\x6c\x64i\x70\x63e\x6c"]="\x75\x72\x6c";${${"\x47\x4c\x4f\x42AL\x53"}["\x6c\x64i\x70\x63e\x6c"]}=$this->urlbase.$this->cartId."/$next";header("\x4coc\x61\x74\x69o\x6e:\x20$url");exit();}public function refresh(){header("\x52\x65\x66resh: 0");exit();}public function updateCart($name,$valor){$ywttvjmxs="\x76a\x6c\x6f\x72";${"G\x4c\x4fBA\x4c\x53"}["\x64\x68\x72qi\x72"]="\x6eam\x65";$_SESSION["\x63\x61\x72t"][${${"\x47\x4cOB\x41\x4c\x53"}["\x64\x68\x72\x71\x69\x72"]}]=${$ywttvjmxs};}public function getCart($nome){$brnqgst="\x6eom\x65";return$_SESSION["car\x74"][${$brnqgst}];}public function getCartAll(){return isset($_SESSION["c\x61\x72t"])?$_SESSION["\x63a\x72\x74"]:[];}public static function manager(){return new cart();}public function unsetAll(){unset($_SESSION["\x63ar\x74"]);}}
?>

Function Calls

None

Variables

None

Stats

MD5 9668a3762d08bfa38fab844c3df9a2e3
Eval Count 0
Decode Time 41 ms