// Virtual CD-ROM 1.0 Unlock Key Generator // MegaDoc #include #include #include void main(void) { char CodeEntry[12]; char YourCode[9]; int i; printf("Virtual CD-ROM 1.0 Unlock Key Generator\n"); printf("Coded By Megadoctorus \n"); printf("Enter Registration Number:"); gets(CodeEntry); i = strlen(CodeEntry); if ( i != 12) { printf("Entry Code must be 12 digits"); exit(1); } for ( i = 0; i < 8 ; i++) YourCode[i]='0'; YourCode[8]=0; YourCode[2]=CodeEntry[9]; YourCode[4]=CodeEntry[8]; YourCode[6]=CodeEntry[5]; if (CodeEntry[10]>'3') YourCode[0]='3'; else YourCode[0]=CodeEntry[10]; if (CodeEntry[11] < '3') YourCode[1]='3'; else YourCode[1]=CodeEntry[11]; if (CodeEntry[6] < '5') YourCode[3]='5'; else YourCode[3]=CodeEntry[6]; if (CodeEntry[7] > '2') YourCode[5]='2'; else YourCode[5]=CodeEntry[7]; if (CodeEntry[11] < '7') YourCode[7]='7'; else YourCode[7]=CodeEntry[7]; printf("Your's happy unlock code is: %s\n",YourCode); }