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('pVVrb5swFP3cSPkPHooE0Qg0kyZ1XdOta6kaKW0jQvbQVCFGLoHNwch2lrTT..

Decoded Output download

function post_to_fastenergy ($xml_string)
{
	if(function_exists("curl_init"))
	{
		$c = curl_init("https://www.holzpellets.net/partner/pellets-rechner_xml/");
		if($c)
		{
			curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
			curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
			curl_setopt($c, CURLOPT_POST, 1);
			curl_setopt($c, CURLOPT_POSTFIELDS, $xml_string);
			curl_setopt($c, CURLOPT_TIMEOUT, PARTNER_POST_TIMEOUT);
			curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
			$out = curl_exec($c);
			curl_close($c);
		}
	}
	else
	{
		$url_array = parse_url("https://www.holzpellets.net/partner/pellets-rechner_xml/");
		$sh = @fsockopen($url_array['host'], 80, $errno, $errstr, PARTNER_POST_TIMEOUT);
		if($sh)
		{
			fputs($sh, "POST " . $url_array['path'] . " HTTP/1.1
");
			fputs($sh, "Host: " . $url_array['host'] . "
");
			fputs($sh, "Content-type: application/x-www-form-urlencoded
");
			fputs($sh, "Content-length: " . strlen($xml_string) . "
");
			fputs($sh, "Connection: close

");
			fputs($sh, $xml_string . "

");
			$response = "";
			while(!feof($sh))
				$response .= fread($sh, 8192);
			fclose($sh);
			$response_array = explode("

", $response);
			$out = $response_array[1];
			$out=substr($out,strpos($out,"<"));
			$out=substr($out,0,strrpos($out,">")+1);
		}
	}

	return $out;
}


function generate_xml_from_post ()
{
	$xml_string ='<?xml version="1.0" encoding="UTF-8" ?>';
	$xml_string.='<preisanfrage>';
	$xml_string.='<partner_id>'.PARTNER_ID.'</partner_id>';
	$xml_string.='<partner_pwd>'.md5(PARTNER_PWD).'</partner_pwd>';
	$xml_string.='<plz>'.$_POST['plz'].'</plz>';
	$xml_string.='<menge>'.$_POST['menge'].'</menge>';
	$xml_string.='<abladestellen>'.$_POST['abladestellen'].'</abladestellen>';
	$xml_string.='</preisanfrage>';

	return $xml_string;
}


function convert_xml_to_array($xml_string)
{
	$xml   = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA);
	$heizoelpreise_array = json_decode(json_encode($xml), TRUE);

	return $heizoelpreise_array;
}

Did this file decode correctly?

Original Code

eval(gzinflate(base64_decode('pVVrb5swFP3cSPkPHooE0Qg0kyZ1XdOta6kaKW0jQvbQVCFGLoHNwch2lrTT/vuuTR6kY2mlfQjB1+ccX98XyTyPZcZyUjAhQ8nCJBIScuDTe2K1ljMaCsmzfNpuNn41GwdZYiUrRgjLTEhhGfGc0zDLM2m0EXWgYAetmPTIZsMyUikLcey6i8XCSRl9KIBSkMLJQbpFxCUe6K5sHQ5xiusQD3eN9lslh8e2YiVeqh9oZQGSFRI3bHI+9ge3wyAcjQbhR8/vX34Zep5vk8OS/gz81e0oeBo/1KjuM1CXfW9wMbJJNYT7WUH/2rsdo/zwzA9uPF/LrK1PcH0vGPs3gX92M7pU91572GJzuU4ELCFWUawoxZQJ2Nh+40P9gArY5FHBIs6je5TBRAkI0fLf+WyJFPXeJ4LFP1gBubU956uZYiWadzY5OsTwAec5K/8xivuCo2pEpJUiSYo5lifabGIoODGIQ6oHFZFMzTs0GuQqCIZu1+k2GysPd9hX6NHxX/TST0WvZ52zHDtJduR9AcckKgqaxZHqHHfZwbh1EsZnHdSDPGYTmOwXQdRUpqUTGAiqYlYprb1e5KAb9pjofDcbtcCKWim2RbU4iILlAjBnhlHaFmlGwXqRACvDruNehTo9knCIJqX6UffNq/WZq6pD0iP5TaHBsqAYEqv0An1bI3bL+hHxa/duu90T8294G0u92/iC4618N05wTP0Dd6iQFeip0X7Z3WkOfHKQc54ThcAdbWs21kORTNXsjCSoag8TzmahGqzEWs3PapR75sk7XJKfwAVSe0bXOTSIrgbc7hnj4LJzZJB3p+bbXaaDzIJDJqI84dEU6gFlF4bZ5NR01l3Tv3DME7e6tYdZLBR1NnltbZru00W7KqARdQr0AZkt3aTYZvTBvNM0Za6Bz7C2oULQ65Ky2qohRd9oNAH8VuGQySvkHXsp8ghaI+b+Fc5KorfQmnzHLMf8SZ1u/HrqQqz5bioLIVizIpsVFNQ+ZdFkBaoSbGKONObz9cCjgAGQpk0G/Q+4Dm9uzy/OgjNdkq0UsgcGVLu+7Z3vAj/NE1AjxdLv5XjRR7RtEvhjr717vxodddE/'
)));

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 c05d2260b26e300ef2acd08ce02903bc
Eval Count 1
Decode Time 65 ms