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 ${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x72\x6er\x7ae\x66\x70"]="\x75p\x64\x61\x74e\x73..
Decoded Output download
<?php ${"GLOBALS"}["wrnrzefp"]="updatesmtp";${"GLOBALS"}["eckfqmvftcic"]="servidor";${"GLOBALS"}["njysdmnxpmct"]="conta";${"GLOBALS"}["ogkvjduane"]="buscasmtp";${"GLOBALS"}["rvjpyu"]="email";${"GLOBALS"}["yxwkjl"]="porta";require_once("../../../pages/system/seguranca.php");require_once("../../../pages/system/config.php");protegePagina("donoadmin");if(isset($_POST["servidor"])){$cbxgugervzv="servidor";${$cbxgugervzv}=sql_injector($_POST["servidor"]);${"GLOBALS"}["gnknslugh"]="ssl";${"GLOBALS"}["hpuxmpwobp"]="porta";${${"GLOBALS"}["yxwkjl"]}=sql_injector($_POST["porta"]);${${"GLOBALS"}["rvjpyu"]}=sql_injector($_POST["email"]);$zheobfyum="senha";${$zheobfyum}=sql_injector($_POST["senha"]);${${"GLOBALS"}["gnknslugh"]}=sql_injector($_POST["ssl"]);${"GLOBALS"}["oklidlcfslx"]="buscasmtp";if(!is_numeric(${${"GLOBALS"}["hpuxmpwobp"]})){echo"<script type="text/javascript">";echo"alert(\"Defina a porta corretamente!\");";echo"window.location="../../home.php?page=email/1etapasmtp\";";echo"</script>";exit;}if(filter_var(${${"GLOBALS"}["rvjpyu"]},FILTER_VALIDATE_EMAIL)){$fvaiwf="email";${${"GLOBALS"}["rvjpyu"]}=${$fvaiwf};}else{echo"<script type=\"text/javascript\">";echo"alert("Email invalido!");";echo"window.location="../../home.php?page=email/1etapasmtp";";echo"</script>";exit;}${${"GLOBALS"}["oklidlcfslx"]}="SELECT * FROM smtp WHERE usuario_id='".$_SESSION["usuarioID"]."'";${${"GLOBALS"}["ogkvjduane"]}=$conn->prepare(${${"GLOBALS"}["ogkvjduane"]});$buscasmtp->execute();${"GLOBALS"}["tuvjgyrfqatm"]="conta";${${"GLOBALS"}["njysdmnxpmct"]}=$buscasmtp->rowCount();if(${${"GLOBALS"}["tuvjgyrfqatm"]}>0){$nsiyxmmnl="ssl";$lwswmwl="updatesmtp";$vrcgsjgkyjj="smtp";$kkbueyfsn="senha";$cpoxrsuwslz="porta";$hzcqpdcjc="smtp";${$vrcgsjgkyjj}=$buscasmtp->fetch();${$lwswmwl}="update smtp set servidor='".${${"GLOBALS"}["eckfqmvftcic"]}."', porta='".${$cpoxrsuwslz}."', email='".${${"GLOBALS"}["rvjpyu"]}."', senha='".${$kkbueyfsn}."', ssl_secure='".${$nsiyxmmnl}."' WHERE usuario_id='".${$hzcqpdcjc}["usuario_id"]."'";${${"GLOBALS"}["wrnrzefp"]}=$conn->prepare(${${"GLOBALS"}["wrnrzefp"]});$updatesmtp->execute();echo"<script type="text/javascript">";echo"alert("Sucesso SMTP Atualizado!\");";echo"window.location=\"../../home.php?page=email/enviaremail";";echo"</script>";}else{$scpgjnsnodn="servidor";${"GLOBALS"}["wkxudqac"]="porta";$eweuonesqb="updatesmtp";${"GLOBALS"}["jxnskwgdn"]="senha";$duqdnctft="updatesmtp";${${"GLOBALS"}["wrnrzefp"]}="insert into smtp (usuario_id,servidor,porta,email,senha) values ('".$_SESSION["usuarioID"]."','".${$scpgjnsnodn}."','".${${"GLOBALS"}["wkxudqac"]}."','".${${"GLOBALS"}["rvjpyu"]}."','".${${"GLOBALS"}["jxnskwgdn"]}."')";${$duqdnctft}=$conn->prepare(${$eweuonesqb});$updatesmtp->execute();echo"<script type="text/javascript">";echo"alert(\"Sucesso SMTP Configurado!");";echo"window.location="../../home.php?page=email/enviaremail";";echo"</script>";}}
?>
Did this file decode correctly?
Original Code
<?php ${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x72\x6er\x7ae\x66\x70"]="\x75p\x64\x61\x74e\x73\x6d\x74p";${"G\x4c\x4f\x42\x41\x4cS"}["\x65c\x6b\x66\x71mv\x66t\x63i\x63"]="\x73er\x76\x69\x64o\x72";${"G\x4c\x4fB\x41\x4c\x53"}["n\x6a\x79sd\x6d\x6e\x78\x70\x6dct"]="cont\x61";${"\x47\x4cO\x42A\x4c\x53"}["\x6f\x67k\x76jd\x75a\x6e\x65"]="\x62\x75\x73\x63as\x6d\x74\x70";${"GL\x4f\x42\x41\x4cS"}["\x72\x76j\x70y\x75"]="\x65\x6d\x61\x69l";${"G\x4c\x4f\x42A\x4c\x53"}["yx\x77\x6b\x6a\x6c"]="\x70o\x72\x74a";require_once("../\x2e\x2e/.\x2e/pag\x65s/s\x79s\x74\x65m/\x73eg\x75r\x61\x6eca\x2e\x70h\x70");require_once("../\x2e./\x2e\x2e/\x70ages/\x73y\x73\x74\x65m/co\x6ef\x69\x67\x2ephp");protegePagina("\x64onoad\x6d\x69n");if(isset($_POST["s\x65r\x76i\x64o\x72"])){$cbxgugervzv="\x73er\x76\x69\x64\x6f\x72";${$cbxgugervzv}=sql_injector($_POST["\x73\x65rv\x69\x64o\x72"]);${"G\x4c\x4f\x42\x41\x4c\x53"}["\x67n\x6bn\x73lu\x67\x68"]="s\x73l";${"\x47\x4c\x4fBALS"}["\x68p\x75xm\x70\x77\x6f\x62\x70"]="p\x6fr\x74a";${${"GL\x4fBA\x4c\x53"}["yx\x77kj\x6c"]}=sql_injector($_POST["\x70\x6frta"]);${${"\x47L\x4f\x42\x41L\x53"}["r\x76\x6a\x70\x79u"]}=sql_injector($_POST["\x65\x6dail"]);$zheobfyum="\x73\x65\x6e\x68\x61";${$zheobfyum}=sql_injector($_POST["\x73\x65n\x68a"]);${${"\x47L\x4f\x42\x41\x4c\x53"}["\x67\x6ekn\x73\x6c\x75\x67\x68"]}=sql_injector($_POST["\x73\x73\x6c"]);${"\x47L\x4f\x42A\x4c\x53"}["o\x6bl\x69\x64\x6c\x63\x66s\x6c\x78"]="\x62\x75s\x63as\x6d\x74p";if(!is_numeric(${${"G\x4c\x4f\x42A\x4c\x53"}["h\x70u\x78\x6d\x70\x77\x6fbp"]})){echo"\x3cs\x63r\x69p\x74\x20\x74\x79p\x65=\x22\x74e\x78t/ja\x76a\x73\x63r\x69\x70\x74\x22>";echo"\x61l\x65rt(\"\x44\x65fina\x20\x61\x20\x70o\x72\x74\x61\x20co\x72\x72\x65t\x61\x6d\x65\x6ete\x21\");";echo"\x77in\x64\x6f\x77\x2e\x6co\x63a\x74io\x6e=\x22\x2e\x2e/\x2e./\x68\x6f\x6d\x65.\x70hp?p\x61\x67\x65=\x65\x6dail/1\x65ta\x70as\x6dt\x70\";";echo"\x3c/\x73cri\x70\x74\x3e";exit;}if(filter_var(${${"\x47\x4c\x4fB\x41\x4c\x53"}["r\x76\x6a\x70\x79\x75"]},FILTER_VALIDATE_EMAIL)){$fvaiwf="ema\x69l";${${"GL\x4fB\x41\x4cS"}["\x72v\x6apy\x75"]}=${$fvaiwf};}else{echo"\x3c\x73c\x72\x69\x70\x74\x20t\x79\x70\x65=\"\x74\x65\x78\x74/j\x61va\x73cr\x69p\x74\">";echo"ale\x72t(\x22Email \x69\x6eva\x6c\x69do!\x22)\x3b";echo"\x77ind\x6f\x77.l\x6f\x63\x61ti\x6fn\x3d\x22\x2e\x2e/\x2e\x2e/\x68ome.\x70h\x70?p\x61g\x65\x3de\x6da\x69l/1e\x74\x61p\x61\x73\x6dtp\x22;";echo"\x3c/s\x63r\x69pt>";exit;}${${"G\x4cOB\x41\x4c\x53"}["\x6f\x6bl\x69\x64\x6c\x63\x66sl\x78"]}="\x53\x45L\x45\x43\x54\x20* \x46ROM \x73m\x74p \x57\x48\x45RE us\x75\x61ri\x6f\x5fid=\x27".$_SESSION["u\x73\x75a\x72i\x6f\x49D"]."\x27";${${"G\x4c\x4f\x42A\x4c\x53"}["og\x6b\x76\x6ad\x75a\x6e\x65"]}=$conn->prepare(${${"\x47\x4cOB\x41\x4c\x53"}["\x6fgk\x76\x6a\x64u\x61\x6ee"]});$buscasmtp->execute();${"\x47\x4c\x4f\x42\x41LS"}["tu\x76\x6a\x67yr\x66\x71\x61\x74m"]="\x63o\x6e\x74a";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6e\x6a\x79\x73dm\x6e\x78\x70m\x63t"]}=$buscasmtp->rowCount();if(${${"\x47\x4cOB\x41\x4cS"}["\x74\x75vj\x67\x79\x72\x66\x71\x61\x74\x6d"]}>0){$nsiyxmmnl="\x73sl";$lwswmwl="\x75p\x64\x61t\x65\x73\x6d\x74\x70";$vrcgsjgkyjj="s\x6d\x74p";$kkbueyfsn="\x73\x65nh\x61";$cpoxrsuwslz="\x70\x6f\x72t\x61";$hzcqpdcjc="\x73\x6d\x74\x70";${$vrcgsjgkyjj}=$buscasmtp->fetch();${$lwswmwl}="upd\x61te smt\x70 \x73\x65t\x20s\x65r\x76i\x64\x6f\x72\x3d\x27".${${"GL\x4fBA\x4cS"}["\x65ckf\x71\x6dv\x66\x74c\x69\x63"]}."\x27, \x70\x6fr\x74\x61=\x27".${$cpoxrsuwslz}."\x27, \x65m\x61i\x6c\x3d'".${${"\x47\x4c\x4fB\x41\x4c\x53"}["rvj\x70\x79\x75"]}."\x27,\x20s\x65\x6eh\x61\x3d'".${$kkbueyfsn}."', \x73sl\x5f\x73\x65cu\x72e\x3d\x27".${$nsiyxmmnl}."' \x57HE\x52\x45\x20u\x73u\x61ri\x6f_\x69d=\x27".${$hzcqpdcjc}["u\x73uari\x6f\x5f\x69\x64"]."'";${${"\x47L\x4fB\x41\x4c\x53"}["\x77\x72\x6er\x7a\x65\x66p"]}=$conn->prepare(${${"\x47L\x4f\x42\x41L\x53"}["\x77\x72\x6er\x7a\x65\x66\x70"]});$updatesmtp->execute();echo"<\x73\x63\x72\x69\x70\x74 type=\x22\x74e\x78t/j\x61\x76\x61script\x22>";echo"al\x65r\x74(\x22\x53u\x63ess\x6f \x53M\x54P \x41tu\x61\x6c\x69\x7aa\x64\x6f!\")\x3b";echo"win\x64\x6f\x77\x2e\x6c\x6fcati\x6fn=\"../\x2e\x2e/ho\x6d\x65.ph\x70?p\x61g\x65=\x65m\x61\x69\x6c/\x65n\x76i\x61\x72email\x22\x3b";echo"\x3c/s\x63rip\x74\x3e";}else{$scpgjnsnodn="\x73\x65r\x76id\x6f\x72";${"\x47\x4cO\x42A\x4c\x53"}["\x77\x6bxu\x64\x71\x61\x63"]="po\x72\x74\x61";$eweuonesqb="u\x70\x64a\x74e\x73m\x74\x70";${"\x47\x4c\x4fB\x41L\x53"}["\x6a\x78\x6e\x73k\x77g\x64\x6e"]="\x73e\x6eh\x61";$duqdnctft="u\x70d\x61\x74\x65\x73\x6d\x74\x70";${${"\x47\x4c\x4fB\x41\x4c\x53"}["w\x72\x6e\x72\x7ae\x66p"]}="i\x6eser\x74 \x69\x6e\x74\x6f smt\x70 (us\x75a\x72\x69o_id,\x73er\x76\x69d\x6fr,porta,\x65\x6d\x61il,\x73en\x68\x61) \x76a\x6c\x75es\x20(\x27".$_SESSION["\x75su\x61ri\x6fID"]."\x27,\x27".${$scpgjnsnodn}."','".${${"\x47\x4cO\x42\x41\x4cS"}["\x77k\x78\x75d\x71\x61c"]}."\x27,\x27".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x76jpy\x75"]}."',\x27".${${"GL\x4f\x42\x41L\x53"}["\x6ax\x6e\x73\x6b\x77\x67d\x6e"]}."\x27)";${$duqdnctft}=$conn->prepare(${$eweuonesqb});$updatesmtp->execute();echo"<\x73crip\x74\x20\x74\x79p\x65\x3d\x22t\x65xt/\x6a\x61\x76a\x73\x63\x72\x69p\x74\x22>";echo"a\x6c\x65rt(\"\x53uces\x73o S\x4dTP Co\x6e\x66\x69\x67u\x72a\x64\x6f!\x22)\x3b";echo"win\x64\x6fw\x2el\x6f\x63\x61\x74\x69\x6fn=\x22\x2e./.\x2e/ho\x6de\x2ep\x68p?\x70a\x67\x65=em\x61\x69\x6c/\x65nv\x69\x61\x72\x65\x6d\x61il\x22\x3b";echo"\x3c/scr\x69p\x74\x3e";}}
?>
Function Calls
None |
Stats
MD5 | 0578c652a6151a4d13fc6780c1a5b6b8 |
Eval Count | 0 |
Decode Time | 55 ms |