- 日志
- 23
- 好友
- 17
- 阅读权限
- 150
- 收听
- 1
- 在线时间
- 1565 小时
- 最后登录
- 2024-12-4
超级版主
教育辅助界扛把子
- 精华
- 1
- 热心
- 7
- 听众
- 1
- 威望
- 48
- 贡献
- 14439
- 违规
- 0
- 书币
- 50118
- 注册时间
- 2020-4-8
|
本帖最后由 csx 于 2020-11-24 02:28 编辑
Access在线解密[PHP源码]
只能解密2000或者97的MDB文件..
[PHP] 纯文本查看 复制代码 <?
/*site: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>
---------------------------------------------------------------------------------------------------------
<br>
选择一个本地的mdb文件,上传解密,如发现密码不完整或者解密不出的问题,请随时联系我
<br>
---------------------------------------------------------------------------------------------------------
<br>
<script language = JavaScript src = "bottom.js">
</script>
</BODY>
</HTML> |
|