Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
{"file":"<?php\n\nif($_SERVER['REQUEST_METHOD'] === \"POST\"){\n\tif(isset($_POST['path'])..
Decoded Output download
{"file":"<?php
if($_SERVER['REQUEST_METHOD'] === \"POST\"){
if(isset($_POST['path'])){
header('Content-type: application\/json');
$_POST['path'] = str_replace( array(\"..\/\", \"..\\"\"), \"\", $_POST['path']);
echo json_encode(scandir(\"\/var\/www\/html\/\" . $_POST['path']));
}else{
header('Content-type: application\/json');
echo '[false]';
}
}
"} ?>
Did this file decode correctly?
Original Code
{"file":"<?php\n\nif($_SERVER['REQUEST_METHOD'] === \"POST\"){\n\tif(isset($_POST['path'])){\n\t\theader('Content-type: application\/json');\n\t\t$_POST['path'] = str_replace( array(\"..\/\", \"..\\\"\"), \"\", $_POST['path']);\n\t\techo json_encode(scandir(\"\/var\/www\/html\/\" . $_POST['path']));\n\t}else{\n\t\theader('Content-type: application\/json');\n\t\techo '[false]';\n\t}\n}\n"}
Function Calls
| None |
Stats
| MD5 | e06546889f8958f34b7b0d1d9538c749 |
| Eval Count | 0 |
| Decode Time | 93 ms |