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 if(basename($_SERVER["REQ\x55\x45S\x54_\x55R\x49"])===basename(__FILE__)){exit("<\x6..

Decoded Output download

<?php if(basename($_SERVER["REQUEST_URI"])===basename(__FILE__)){exit("<h1>ERROR 404</h1>Entre em contato conosco e envie detalhes.");}protegePagina("user");if($_SESSION["valor"]==0.00){echo"<script type="text/javascript\"> window.location=\"../home.php?page=erroprocesso";</script>";}${"GLOBALS"}["ysokqluz"]="urlcode";if(isset($_SESSION["ticket_url"])){$cqxlwsaepq="urlcode";${$cqxlwsaepq}=$_SESSION["ticket_url"];}else{echo"<script type="text/javascript\"> window.location=\"../home.php?page=erroprocesso\";</script>";}echo "<script src="https://sdk.mercadopago.com/js/v2"></script>
<script type=\"text/javascript">

//Calling function
setTimeout(repeatAjax,5000);
function repeatAjax(){
jQuery.ajax({

          type: \"POST",
          url: 'pages/verify.php',
          dataType: 'text',
          success: function(resp) {
          	if(resp == 'Aprovado')
          	{
              window.location = "../home.php?page=aprovado\";

                    jQuery('.teste').html(resp);
                    }

          },
          complete: function() {
                setTimeout(repeatAjax,5000); //After completion of request, time to redo it after a second
             }
        });
}
</script>
<div class="active"><a class=\"d-flex align-items-center" href=\"home.php\"><i data-feather=\"home\"></i><span class="menu-title text-truncate\" data-i18n="Dashboards">DASHBOARD</span></a>
</div>
<iframe id=\"iFrameVideos" src=\"";echo${${"GLOBALS"}["ysokqluz"]};echo "\" height=\"700px\" width="100%\" frameborder="0\" marginwidth="0\" marginheight=\"0\" scrolling="yes" allowfullscreen="allowfullscreen\" > Por favor, use um navegador que suporte iframes!</iframe>
<script>iFrameResize({log: false, inPageLinks: true}, '#iFrameVideos')</script>
</div>
"; 
?>

Did this file decode correctly?

Original Code

<?php if(basename($_SERVER["REQ\x55\x45S\x54_\x55R\x49"])===basename(__FILE__)){exit("<\x681>\x45R\x52\x4fR 404</h\x31\x3e\x45\x6e\x74\x72e e\x6d\x20\x63\x6f\x6e\x74\x61to \x63o\x6e\x6f\x73co e \x65\x6evi\x65\x20\x64e\x74\x61lhe\x73.");}protegePagina("us\x65\x72");if($_SESSION["v\x61l\x6f\x72"]==0.00){echo"<\x73c\x72i\x70\x74 \x74yp\x65=\x22te\x78t/j\x61\x76a\x73\x63\x72i\x70t\"\x3e\x20w\x69\x6e\x64\x6fw\x2e\x6c\x6fca\x74\x69\x6f\x6e\x3d\"../\x68om\x65\x2ep\x68p?\x70a\x67e\x3d\x65\x72\x72o\x70\x72\x6fc\x65sso\x22\x3b\x3c/\x73\x63\x72i\x70t\x3e";}${"GLOB\x41\x4c\x53"}["\x79\x73\x6fk\x71\x6c\x75\x7a"]="u\x72\x6c\x63\x6f\x64e";if(isset($_SESSION["\x74i\x63\x6b\x65t_\x75rl"])){$cqxlwsaepq="\x75\x72\x6c\x63\x6f\x64\x65";${$cqxlwsaepq}=$_SESSION["t\x69\x63\x6bet_\x75\x72l"];}else{echo"<sc\x72ipt\x20ty\x70\x65=\x22t\x65\x78t/\x6a\x61vascr\x69pt\"\x3e \x77\x69n\x64ow\x2el\x6f\x63\x61tio\x6e=\"\x2e./\x68o\x6d\x65\x2ep\x68\x70?pa\x67\x65\x3de\x72rop\x72\x6f\x63es\x73o\"\x3b\x3c/\x73c\x72\x69\x70t\x3e";}echo "<s\x63\x72i\x70t \x73rc=\x22h\x74tps://sdk.\x6d\x65\x72\x63a\x64\x6f\x70\x61go\x2ecom/j\x73/\x76\x32\x22>\x3c/s\x63\x72\x69\x70t\x3e\n\x3c\x73\x63r\x69\x70t \x74\x79p\x65=\"t\x65\x78\x74/javas\x63\x72\x69\x70t\x22\x3e\n\n//C\x61\x6c\x6c\x69ng\x20fu\x6e\x63ti\x6f\x6e\nsetTim\x65\x6fu\x74(rep\x65\x61\x74\x41\x6aax,5\x30\x300);\nf\x75ncti\x6f\x6e\x20\x72e\x70eat\x41jax(){\n\x6a\x51\x75\x65ry.\x61\x6aax({\n\n\x20    \x20 \x20 \x20t\x79\x70\x65: \"\x50OS\x54\x22,\n\x20 \x20\x20 \x20 \x20\x20\x20url:\x20'pa\x67e\x73/\x76e\x72\x69\x66\x79.\x70\x68p\x27,\n\x20\x20 \x20\x20\x20\x20 \x20\x20\x64a\x74\x61Ty\x70e:\x20'\x74e\x78t',\n\x20\x20   \x20 \x20 \x20s\x75\x63\x63\x65\x73\x73:\x20func\x74i\x6fn(r\x65\x73p) {\n\x20 \x20\x20  \x20 \x20\x20\t\x69\x66(resp\x20\x3d\x3d\x20'A\x70\x72\x6fva\x64o\x27)\n\x20 \x20\x20      \t{\n  \x20   \x20 \x20\x20  \x20 \x77ind\x6f\x77\x2el\x6fcati\x6f\x6e \x3d \x22../\x68\x6f\x6de.\x70h\x70?p\x61g\x65=\x61p\x72\x6fv\x61do\";\n\n\x20\x20\x20 \x20\x20\x20 \x20 \x20\x20\x20 \x20\x20\x20\x20\x20\x20\x6aQue\x72y(\x27\x2ete\x73\x74e\x27).html(\x72\x65\x73\x70)\x3b\n \x20  \x20\x20        \x20 \x20\x20 \x20}\n\n\x20  \x20\x20 \x20  \x20},\n  \x20 \x20 \x20\x20  c\x6f\x6d\x70l\x65t\x65: f\x75nc\x74\x69on() {\n\x20\x20 \x20\x20  \x20\x20  \x20\x20  \x20se\x74T\x69\x6de\x6f\x75\x74(r\x65p\x65at\x41\x6aax,\x35\x300\x30)\x3b\x20//Af\x74er\x20co\x6dple\x74\x69on \x6ff \x72\x65\x71u\x65\x73\x74,\x20\x74\x69\x6d\x65 \x74\x6f\x20\x72e\x64o it\x20afte\x72\x20a se\x63o\x6ed\n\x20 \x20 \x20\x20\x20\x20 \x20\x20 \x20}\n \x20  \x20\x20  })\x3b\n}\n</\x73\x63r\x69p\x74\x3e\n<\x64\x69\x76 cl\x61\x73\x73=\x22a\x63\x74\x69ve\x22>\x3ca c\x6c\x61\x73s\x3d\"\x64-\x66\x6c\x65\x78\x20a\x6cig\x6e-\x69te\x6ds-\x63\x65\x6ete\x72\x22\x20hr\x65\x66\x3d\"ho\x6d\x65.ph\x70\">\x3c\x69 dat\x61-\x66\x65\x61ther\x3d\"home\">\x3c/\x69>\x3c\x73pan \x63\x6cass\x3d\x22\x6d\x65\x6e\x75-ti\x74le\x20tex\x74-tru\x6ecate\" \x64a\x74a-\x691\x38\x6e\x3d\x22\x44\x61s\x68\x62\x6f\x61\x72\x64\x73\x22>DAS\x48B\x4fA\x52D</span\x3e</\x61>\n\x3c/\x64i\x76\x3e\n<ifram\x65 i\x64\x3d\"\x69\x46r\x61m\x65Vid\x65os\x22\x20sr\x63=\"";echo${${"\x47\x4c\x4fB\x41L\x53"}["\x79\x73\x6f\x6b\x71\x6cuz"]};echo "\" he\x69\x67h\x74\x3d\"\x37\x30\x30px\"\x20\x77idt\x68\x3d\x22\x31\x300\x25\" fr\x61m\x65\x62o\x72d\x65\x72\x3d\x22\x30\" \x6d\x61rg\x69nw\x69d\x74h\x3d\x220\"\x20m\x61rg\x69nh\x65\x69\x67\x68t=\"\x30\"\x20\x73\x63\x72o\x6c\x6ci\x6e\x67=\x22ye\x73\x22\x20a\x6cl\x6fwful\x6c\x73c\x72\x65e\x6e\x3d\x22all\x6fwfu\x6cl\x73\x63\x72e\x65n\"\x20> \x50o\x72\x20favo\x72, us\x65\x20u\x6d\x20\x6e\x61\x76eg\x61dor\x20q\x75\x65 s\x75po\x72t\x65\x20\x69f\x72a\x6de\x73\x21\x3c/\x69f\x72a\x6de>\n\x3csc\x72ip\x74>i\x46ram\x65Res\x69\x7a\x65({\x6c\x6f\x67: fal\x73e, \x69\x6eP\x61\x67\x65\x4ci\x6ek\x73: \x74\x72\x75\x65},\x20'#i\x46ram\x65\x56ide\x6fs\x27)\x3c/s\x63rip\x74>\n\x3c/\x64\x69\x76>\n";
?>

Function Calls

basename 1

Variables

None

Stats

MD5 12dea147e0f14d5cb48bd912185877dd
Eval Count 0
Decode Time 46 ms