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 function curl_get_contents($url) { $ip = mt_rand(1, 255).'.'.mt_rand(1, 255)...

Decoded Output download

 
 
<?php  
function curl_get_contents($url) { 
$ip = mt_rand(1, 255).'.'.mt_rand(1, 255).'.'.mt_rand(1, 255).'.'.mt_rand(1, 255); 
	$opts = array( 
	  'http'=>array( 
		'method'=>"GET", 
		'timeout'=>20, 
		'header'=>"User-Agent:Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07) 
X-FORWARDED-FOR:$ip 
CLIENT-IP:$ip" 
	  ) 
	); 
	$context = stream_context_create($opts); 
	$html = @file_get_contents($url, false, $context); 
	if (empty($html)) { 
		exit("<p align='center'><font color='red'><b>Connection Error!</b></font></p>"); 
	}	 
	return $html; 
}  
echo curl_get_contents('https://ssl.zc.qq.com/v3/index-chs.html'); ?>

Did this file decode correctly?

Original Code



<?php 
function curl_get_contents($url) {
$ip = mt_rand(1, 255).'.'.mt_rand(1, 255).'.'.mt_rand(1, 255).'.'.mt_rand(1, 255);
	$opts = array(
	  'http'=>array(
		'method'=>"GET",
		'timeout'=>20,
		'header'=>"User-Agent:Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)
X-FORWARDED-FOR:$ip
CLIENT-IP:$ip"
	  )
	);
	$context = stream_context_create($opts);
	$html = @file_get_contents($url, false, $context);
	if (empty($html)) {
		exit("<p align='center'><font color='red'><b>Connection Error!</b></font></p>");
	}	
	return $html;
} 
echo curl_get_contents('https://ssl.zc.qq.com/v3/index-chs.html');

Function Calls

mt_rand 1
curl_get_contents 1

Variables

$url https://ssl.zc.qq.com/v3/index-chs.html

Stats

MD5 3259e1959ea817ff9082db4978dd06f6
Eval Count 0
Decode Time 99 ms