Detailed description of how to retrieve the access Database Password

Source: Internet
Author: User
In the Access database, you can set a password for the database to ensure security. But what should I do if I forget my password? Don't worry. Here is a method to retrieve the password. For a database created with Access, the 13 bytes starting at the address of the database file 00000042 are the password bits of the Access database. If an unencrypted database is used, the 13-byte raw data is sorted in sequence.

In the Access database, you can set a password for the database to ensure security. But what should I do if I forget my password? Don't worry. Here is a method to retrieve the password. For a database created with Access, the 13 bytes starting at the address of the database file 00000042 are the password bits of the Access database. If an unencrypted database is used, the 13-byte raw data is sorted in sequence.

In the Access database, you can set a password for the database to ensure security. But what should I do if I forget my password? Don't worry. Here is a method to retrieve the password.

For a database created with Access, the 13 bytes starting at the address of the database file 00000042 are the password bits of the Access database. For an unencrypted database, the original data of the 13 bytes is 86 FB 37 5D 44 9C FA C6 28 E6 13 in sequence. In fact, after you set a password, Access will change your password (note that the password you entered is a character in this document) and the above 13 bytes of data, so the 13 bytes from the library file address 00000042 is changed to the key. For example, if the password you set is abc, after an exception or operation, then, the 13 bytes of data starting from 00000042 are changed to E7 99 8F 37 5D 44 9C FA C6 28 E6 13. A data can be restored after the same exception or operation. Therefore, for an Access database with a password set, you only need to perform one operation on the 13 key data and the original 13 data to obtain the password.

The following is a C-language cracking program:

/* Assume that the encrypted Access library is myacc. mdb and is stored in the root directory of drive C */

# Include "stdio. h ″

Main ()

{FILE * fp

Char mm0 [13] = {0x86, 0xfb, 0xec, 0x37, 0x5d, 0x44, 0x9c, 0xfa, 0xc6, 0x5e, 0x28, 0xe6, 0x13 };

/* This is 13 Raw data records */

Char mml [13], mm2 [13];

/* Mm1 is used to store the encrypted 13 keys; mm2 is used to store the password */

Int I, k;

Fp = fopen ("c: \ myacc. mdb", "rb ″);

If (fp = NULL ){

Printf ("n" cannot open this library! ″);

Exit (0 );}

Rewind (fp); fseek (fp, 0x42L, 0 );

Fread (mm1, 13, 1, fp);/* read key */

For (I = 0; I <13; I ++ ){

Mm2 [I] = mm0 [I] ^ mm [I]; */The original data is different from the key or */

Else

Break ;}

K = 1; fclose (fp );

If (k = 0)

Printf ("no password is set! ″);

Else {printf ("n password is: n ″);

For (I = 0; ibr> printf ("% c, mm2 [I]");}

By the way, although you can enter a maximum of 14 characters in the password for the Access database, only the first 13 characters are valid.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.