Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Works on the old 16-bit version of microtype */
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- int main() {
- int i;
- char fname[256],buff[26];
- FILE *f;
- while (true) {
- system("cls");
- printf (
- "MicroType Account Cracker - by Jakash3\n\n"
- "Enter microtype data filename: "
- );
- gets(fname);
- f=fopen(fname,"r");
- if (!f) {
- printf("Failed to open file!");
- goto end;
- }
- fseek(f,6,0);
- if (fread(buff,1,26,f)<26) {
- printf("Failed to read file!");
- goto end;
- }
- printf(
- "\nUsername: %s"
- "\nPassword: ",
- buff
- );
- fseek(f,0x2b,0);
- fread(buff,1,16,f);
- for (i=0;i<15;i++) {
- printf("%c",buff[i]^0xAA);
- }
- printf("\nPeriod number: ");
- fseek(f,0x20,0);
- fread(buff,1,1,f);
- printf("%c",(char*)buff[0]);
- freopen(fname,"r+",f);
- if (!f) { goto end; }
- printf (
- "\n\nSelect an option:\n"
- "1) Change username\n"
- "2) Change pasword\n"
- "3) Change period number\n"
- "4) Quit\n\n"
- );
- gets(buff);
- if (!memcmp(buff,"1",1)) {
- printf("Enter new username (max 25): ");
- memset(buff,0,26);
- gets(buff);
- fseek(f,6,0);
- if (fwrite(buff,1,26,f)<26) {
- printf("Failed to set new username!");
- } else {
- printf("Username successfully set.");
- }
- getchar();
- } else if (!memcmp(buff,"2",1)) {
- printf("Enter new password (max 16): ");
- memset(buff,0xAA,16);
- gets(buff);
- for (i=0;i<strlen(buff);i++) {
- buff[i]^=0xAA;
- }
- buff[i]=0xAA;
- fseek(f,0x2b,0);
- if (fwrite(buff,1,16,f)<16) {
- printf("Failed to set new password!");
- } else {
- printf("Password sucessfully set.");
- }
- getchar();
- } else if (!memcmp(buff,"3",1)) {
- printf("Enter new period number: ");
- gets(buff);
- fseek(f,0x20,0);
- if (putc(buff[0],f)==EOF) {
- printf("Failed to set period number!");
- } else {
- printf("Period number successfully set.");
- }
- getchar();
- } else if (!memcmp(buff,"4",1)) {
- fclose(f);
- return 0;
- }
- fclose(f);
- }
- end:
- fclose(f);
- printf("\n\nPress Enter to quit. . .");
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement