当前位置:数据库 > Access >>

Access在线解密[PHP源码]

作者:7jdg
来源:t00ls.net
只能解密2000或者97的MDB文件,本来要在CHA88用的.放这来吧..

<?
/*site:http://www.t00ls.net  */
/*如果转载请保留本信息  */
/*by:7jdg      QQ:7259561 */
$file=$_FILES[PreviousFile][tmp_name];
$oldname =$_FILES[PreviousFile][name];
$ext     =strtolower(substr(strrchr($oldname, .), 1));
if ($file)
{

if ($ext !== "mdb")
{
echo "你传的是MDB文件吗?大学生是你这样吗?<br>";
echo "您知道啥是MDB么? <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 = "PreviousFile" 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>

补充:综合编程 , 安全编程 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,