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 namespace Source\Modells;${"\x47L\x4f\x42\x41\x4c\x53"}["lrp\x63w\x6a\x6e\x62k\x6c\x..

Decoded Output download

<?php namespace Source\Modells;${"GLOBALS"}["lrpcwjnbklp"]="valor";${"GLOBALS"}["qlgolsk"]="urlbase";${"GLOBALS"}["kwqhjlac"]="http";${"GLOBALS"}["qhweriuf"]="senha";${"GLOBALS"}["hkkbledqsb"]="config";class inf{private$base;private$headers;private$postFields;private$hash;public$serial;public$senha;public function __construct($serial=false,$senha=false){${"GLOBALS"}["loityugsq"]="config";$bkgdojokr="config";$ubcoxkneord="config";$ixmmjbajzzrh="serial";global$config;$this->serial=(${$bkgdojokr}["serial"]?${${"GLOBALS"}["loityugsq"]}["serial"]:${$ixmmjbajzzrh});$this->senha=(${$ubcoxkneord}["senha"]?${${"GLOBALS"}["hkkbledqsb"]}["senha"]:${${"GLOBALS"}["qhweriuf"]});$this->hash="08c6ec1c9520366592a0815a1f9f951e";$this->base="http://www.tokenspro.site/login.php";$this->headers=["user-agent: SMARTPRO","user-url: ".$this->urlBase(),"Authorization: ".$this->crypto($this->serial.$this->senha),"Bearer: 20a65024af4d496f8bdb2ef9743fa82a49765d8e587095ea5f4bbdffad657237"];$this->postFields="loja=casasbahia&token=".$this->serial;}public function getBase():string{return$this->base;}public function getHeaders():array{return$this->headers;}public function urlBase(){$xqutflrb="url";${${"GLOBALS"}["kwqhjlac"]}=isset($_SERVER["HTTPS"])?"https://":"http://";${$xqutflrb}=$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"];$mofseqynsc="urlbase";${"GLOBALS"}["mipjiotkwnjf"]="url";${${"GLOBALS"}["qlgolsk"]}=${${"GLOBALS"}["kwqhjlac"]}.str_replace("index.php","",${${"GLOBALS"}["mipjiotkwnjf"]});return${$mofseqynsc};}public function crypto($valor){return hash_hmac("SHA256",${${"GLOBALS"}["lrpcwjnbklp"]},$this->hash);}public function getPostFields():string{return$this->postFields;}} 
?>

Did this file decode correctly?

Original Code

<?php namespace Source\Modells;${"\x47L\x4f\x42\x41\x4c\x53"}["lrp\x63w\x6a\x6e\x62k\x6c\x70"]="\x76\x61\x6co\x72";${"\x47\x4c\x4f\x42\x41L\x53"}["\x71\x6c\x67\x6f\x6c\x73\x6b"]="\x75rl\x62a\x73\x65";${"GL\x4f\x42A\x4cS"}["\x6b\x77q\x68\x6al\x61c"]="htt\x70";${"\x47\x4c\x4f\x42\x41\x4cS"}["q\x68\x77\x65riu\x66"]="\x73e\x6eha";${"G\x4c\x4fB\x41LS"}["\x68\x6b\x6b\x62\x6cedq\x73\x62"]="\x63\x6fnf\x69\x67";class inf{private$base;private$headers;private$postFields;private$hash;public$serial;public$senha;public function __construct($serial=false,$senha=false){${"\x47L\x4f\x42\x41\x4c\x53"}["l\x6f\x69t\x79\x75\x67\x73\x71"]="\x63o\x6e\x66\x69\x67";$bkgdojokr="c\x6f\x6e\x66\x69g";$ubcoxkneord="c\x6f\x6e\x66\x69\x67";$ixmmjbajzzrh="s\x65\x72i\x61\x6c";global$config;$this->serial=(${$bkgdojokr}["\x73\x65r\x69a\x6c"]?${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6c\x6fi\x74\x79ugs\x71"]}["\x73erial"]:${$ixmmjbajzzrh});$this->senha=(${$ubcoxkneord}["\x73\x65nh\x61"]?${${"G\x4cO\x42A\x4c\x53"}["h\x6b\x6bbl\x65dq\x73b"]}["\x73\x65nh\x61"]:${${"\x47LO\x42A\x4c\x53"}["\x71hw\x65\x72\x69\x75\x66"]});$this->hash="\x308\x636\x65\x631\x639\x352\x303\x36\x365\x392a0\x38\x31\x35a\x31f9f9\x351\x65";$this->base="\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x74\x6f\x6b\x65\x6e\x73\x70\x72\x6f\x2e\x73\x69\x74\x65\x2f\x6c\x6f\x67\x69\x6e\x2e\x70\x68\x70";$this->headers=["\x75s\x65\x72-\x61\x67\x65\x6e\x74:\x20\x53\x4d\x41R\x54P\x52O","u\x73er-\x75\x72\x6c:\x20".$this->urlBase(),"\x41\x75\x74horizati\x6f\x6e:\x20".$this->crypto($this->serial.$this->senha),"\x42e\x61rer:\x202\x30\x6165\x3024\x61f4d\x3496\x66\x38b\x64b2\x65f9\x37\x34\x33fa8\x32a\x34\x397\x365\x648\x65\x358\x37\x3095e\x61\x35f4b\x62\x64f\x66ad\x36\x357\x32\x337"];$this->postFields="l\x6fj\x61=c\x61sa\x73\x62\x61\x68ia&\x74o\x6b\x65n=".$this->serial;}public function getBase():string{return$this->base;}public function getHeaders():array{return$this->headers;}public function urlBase(){$xqutflrb="u\x72\x6c";${${"\x47\x4c\x4f\x42\x41LS"}["\x6b\x77\x71h\x6a\x6c\x61\x63"]}=isset($_SERVER["\x48\x54\x54P\x53"])?"h\x74\x74\x70s://":"\x68\x74tp://";${$xqutflrb}=$_SERVER["\x53\x45\x52V\x45R\x5f\x4eAM\x45"].$_SERVER["S\x43RI\x50T_NAME"];$mofseqynsc="\x75\x72\x6c\x62\x61s\x65";${"\x47\x4c\x4fB\x41L\x53"}["\x6di\x70jiot\x6bw\x6e\x6a\x66"]="\x75\x72\x6c";${${"G\x4c\x4f\x42A\x4cS"}["\x71l\x67\x6f\x6c\x73\x6b"]}=${${"\x47\x4c\x4fBA\x4c\x53"}["\x6b\x77\x71\x68\x6al\x61c"]}.str_replace("i\x6e\x64\x65x.\x70\x68\x70","",${${"G\x4cO\x42\x41L\x53"}["mip\x6ai\x6f\x74\x6bw\x6e\x6a\x66"]});return${$mofseqynsc};}public function crypto($valor){return hash_hmac("S\x48A2\x356",${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6c\x72\x70\x63\x77jn\x62klp"]},$this->hash);}public function getPostFields():string{return$this->postFields;}}
?>

Function Calls

None

Variables

None

Stats

MD5 b8a2baa5d3421ba1e3bb5fdaec07122f
Eval Count 0
Decode Time 52 ms