首页 > Other > Access在线解密 PHP源码

Access在线解密 PHP源码

<?
/*site:http://www.t00ls.net */
/*如果转载请保留本信息 */
/*by:7jdg QQ:7259561 */
$file=$_FILES[‘uploadfile’][‘tmp_name’];
$oldname =$_FILES[‘uploadfile’][‘name’];
$ext =strtolower(substr(strrchr($oldname, ‘.’), 1));
if ($file)
{
if ($ext !== “mdb”)
{
echo “你传的是MDB文件吗?大学生是你这样吗?<br>”;
echo “您知道啥是MDB么?\t<font color=red>” . $oldname . “</font>是MDB后缀吗?后缀是啥知道不?”;
}
else
{
//为Access2000异或的源码
$PassSource2k=array(0xa1,0xec,0x7a,0x9c,0xe1,0x28,0x34,0x8a,0x73,0x7b,0xd2,0xdf,0x50);
//Access97的异或源码
$PassSource97=array(0x86,0xfb,0xec,0x37,0x5d,0x44,0x9c,0xfa,0xc6,0x5e,0x28,0xe6,0x13);

//$file = ‘Level5555.mdb’;

$ver = file_get_contents($file,1,null,0x14,1);//版本
$ver = hexdec(bin2hex($ver));
$EncrypFlag= file_get_contents($file,1,null,0x62,1);//加密标志
$EncrypFlag = hexdec(bin2hex($EncrypFlag));
for($i=66;$i < 92; $i++){
$temp = file_get_contents($file,1,null,$i,1);//加密标志
$pass[].=hexdec(bin2hex($temp));
}

if ($ver < 1){
$MdbVersion=”Access 97″;
if(($pass[0] ^ $PassSource97[0])==0)
$MdbPassword=”密码为空!”;
else{
$MdbPassword=””;
for($i=0;$i < 13; $i++)
$MdbPassword .=chr($pass[$i*2] ^ $PassSource2k[$i]);
}
}else{
$MdbVersion=”Access 2000 or 2002″;
for($i=0;$i < 13; $i++){
if(($i % 2)==0)
$t1 = chr(0x13 ^ $EncrypFlag ^ $pass[$i*2] ^ $PassSource2k[$i]);
else
$t1 = chr($pass[$i*2] ^ $PassSource2k[$i]);

$MdbPassword .=$t1;
}
}
if(ord($MdbPassword[1]) < 0x20 || ord($MdbPassword[1]) > 0x7e)
$MdbPassword=”密码为空!”;
}
}
?>

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML>
<HEAD>
<TITLE>Access在线解密</TITLE>
<META http-equiv = Content-Type content = “text/html; charset=gb2312”>
<META content = “MSHTML 6.00.2800.1479” name = GENERATOR>
</HEAD>
<link href = “style.css” rel = “stylesheet” type = “text/css”>
<BODY>
<br>
<br>
<form action = “” method = “POST” enctype = “multipart/form-data”>
MDB文件:
<INPUT class=”input” type = “file” name = “uploadfile” size = “21”>
<INPUT class=”input” name = “” value = “解密” type = “submit” size = “30”><br><br>
Access版本: <input name=”ver” value=”<?= $MdbVersion ?>” type=”text” class=”input” size=”39″ ><br>
文件名: <input name=”Encode” value=”<?= $oldname ?>” type=”text” class=”input” size=”39″ ><br>
密码: <input name=”Decode” value=”<?= $MdbPassword?>” type=”text” class=”input” size=”39″ >
</FORM>
<br>

分类:Other
  1. 还没有评论。
  1. No trackbacks yet.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: