access密码破解,未证实

 
CString m_strEdtFile;
02   CFileDialog dlgFile (TRUE,"*.mdb","*.mdb",OFN_HIDEREADONLY,"Access File (*.mdb)",this);   
03    if (dlgFile.DoModal () == IDOK) 
04{  
05        m_strEdtFile = dlgFile.GetPathName ();   
06     
07    char            cWord[13];   
08    CFile           fp;   
09    CFileException  e;   
10    CString m_strStaResult;
11    int nRC = fp.Open (m_strEdtFile,CFile::modeRead,&e);   
12    if (nRC == 0)
13    {   
14        AfxMessageBox ("Can not open the file!"); 
15    }   
16else if (fp.GetLength () = 80)   
17    {   
18        AfxMessageBox ("This is not Mdb file!");  
19    }   
20   else
21{
22    fp.Seek (66,CFile::begin);   
23    fp.Read (cWord,13);   
24  
25     
26    if ((BYTE)(cWord[0] ^ 0x86) == 0)   
27        m_strStaResult = "No Password";   
28    else   
29    {   
30        cWord[0] ^= 0x86;   
31        cWord[1] ^= 0xFB;   
32        cWord[2] ^= 0xEC;   
33        cWord[3] ^= 0x37;   
34        cWord[4] ^= 0x5D;   
35        cWord[5] ^= 0x44;   
36        cWord[6] ^= 0x9C;   
37        cWord[7] ^= 0xFA;   
38        cWord[8] ^= 0xC6;   
39        cWord[9] ^= 0x5E;   
40        cWord[10] ^= 0x28;   
41        cWord[11] ^= 0xE6;   
42        cWord[12] ^= 0x13;   
43     
44        m_strStaResult = cWord;   
45    }
46AfxMessageBox(m_strStaResult);
47}
48       fp.Close ();   
49}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值