Principle of access password cracking --
The password of the Access database is easily broken. No matter how many digits of your password, it can be broken out quickly using popular tools on the Internet. It was originally thought that access is the same as Word Excel. As a suite of MS Office, it uses DES encryption, which is not a brute-force cracking solution. The longer the password multiple, the harder it is to break. As a result, it was quickly broken out. After query, the original access encryption is too simple. As follows: The 40 bytes starting from the address 00000042 of the library file are the password bits of the Access 2000 library. If an unencrypted database contains the following 40 bytes of raw data: 29 77 EC 37 F2 C8 9C fa 69 D2 28 E6 BC 3A 8A 60 FB 18 7b 36 5A Fe DF B1 D8 78 13 43 60 23 B1 33 9B ed 79 5B 3D 33 3D 39 7c 2a. After you set a password for the database, the 40 bytes will become the key. Therefore, to crack the password without retaining the password of the original database, you only need to restore the 40 bytes starting from 00000042 to the original data, thus skipping the password. In addition, after you set the password, Access 2000 will compare the ASCII code of your password with the above 40 bytes of data. Therefore, the 40 bytes starting from the library file address 00000042 become the key. For example, if the password you set is 12345678901234567890 (Note: up to 20 ASCII characters can be set), after an exception or operation, then 40 bytes of data starting from 00000042 are changed to 18 77 de 37 C1 C8 A8 fa 5C D2 1E E6 8B B2 60 C2 18 4B 36 6B Fe ed B1 EB 78 27 43 55 23 87 33 ac ed 41 5B 04 39 4C 2a. As we all know, after a single data exception or operation, it can be restored again after the same exception or operation. Therefore, for an Access 2000 database with a password set, you only need to perform one operation on the 40 key data and the 40 original data to obtain the password. Finally, it should be noted that, because Access 2000 represents each Password character in double bytes, 40 bytes of raw data can be divided into 20 groups in sequence, each group represents one password character, the first byte in each group is used to perform an exclusive or operation, and the second byte remains unchanged.
// Crackaccesspassdlg. CPP: implementation file // # include "stdafx. H "# include" crackaccesspass. H "# include" crackaccesspassdlg. H "# ifdef _ debug # define new debug_new # endif // used for applications Program The caboutdlg dialog box class caboutdlg: Public cdialog {public: caboutdlg (); // the data in the dialog box Enum {IDD = idd_aboutbox}; protected: virtual void dodataexchange (cdataexchange * PDX); // DDX/DDV support // protected: declare_message_map ()}; caboutdlg: caboutdlg (): cdialog (caboutdlg: IDD) {} void caboutdlg: dodataexchange (cdataexchange * PDX) {cdialog: dodataexchange (PDX);} begin_message_map (caboutdlg, cdialog) end_mes Sage_map () // The parameters dialog box "ccrackaccesspassdlg: ccrackaccesspassdlg (cwnd * pparent/** // * = NULL */): cdialog (ccrackaccesspassdlg: IDD, pparent ), m_filepath (_ T ("") {m_hicon = afxgetapp ()-> loadicon (idr_mainframe);} void ccrackaccesspassdlg: dodataexchange (cdataexchange * PDX) {cdialog :: dodataexchange (PDX); ddx_text (PDX, idc_edit1, m_filepath);} begin_message_map (ccrackaccesspassdlg, cdialog) O N_wm_syscommand () on_wm_paint () Evaluate () //} afx_msg_map evaluate (idc_button1, & Mask: callback) end_message_map () // notify the message processing program bool handle: oninitdialog () {cdialog: oninitdialog (); // Add the "about" menu item to the system menu. // Idm_aboutbox must be in the range of system commands. Assert (idm_aboutbox & 0xfff0) = idm_aboutbox); Assert (idm_aboutbox <0xf000); cmenu * psysmenu = getsystemmenu (false); If (psysmenu! = NULL) {cstring straboutmenu; straboutmenu. loadstring (ids_aboutbox); If (! Straboutmenu. isempty () {psysmenu-> appendmenu (mf_separator); psysmenu-> appendmenu (mf_string, idm_aboutbox, straboutmenu); }}// set the icon of this dialog box. When the main window of the application is not a dialog box, the framework will automatically // execute this operation seticon (m_hicon, true); // set the big icon seticon (m_hicon, false ); // set the small icon // todo: add additional initialization here Code Return true; // return true} void ccrackaccesspassdlg: onsyscommand (uint NID, lparam) {If (NID & 0xfff0) = idm_aboutbox) unless the focus is set to the control) {caboutdlg dlgabout; dlgabout. domodal () ;}else {cdialog: onsyscommand (NID, lparam) ;}// if you add the minimization button to the dialog box, you need the following code // to draw the icon. For MFC applications that use document/view models, // This will be automatically completed by the framework. Void ccrackaccesspassdlg: onpaint () {If (isiconic () {cpaintdc (this); // The device context sendmessage (wm_iconerasebkgnd, reinterpret_cast <wparam> (DC. getsafehdc (), 0); // center the icon in the work rectangle int cxicon = getsystemmetrics (sm_cxicon); int cyicon = getsystemmetrics (sm_cyicon); crect rect; getclientrect (& rect); int x = (rect. width ()-cxicon + 1)/2; int y = (rect. height ()-cyicon + 1)/2; // draw the icon DC. drawicon (X, y, m_hicon) ;}else {cdialog: onpaint () ;}// the system calls this function to display the cursor when the user drags down the minimized window. // Hcursor ccrackaccesspassdlg: onquerydragicon () {return static_cast