⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmatchjb.cpp

📁 破解很多程序的序列号算法程序
💻 CPP
字号:
/* Comments on protection scheme:

The guts of the scheme is: subtract 1492 from the customer serial number and
display it in reverse order.

*/

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>

int main()
{
unsigned char customer_serial[19]={0}, *p, code[19]={0}, *q, temp[19]={0}, *r;
long double code_reversed=0;
int i=0,j=0,length=0;

tryagain:
length=0;
p=customer_serial;
q=code;
r=temp;
clrscr();
printf("Key Generator for Music Match JukeBox v2.03");
printf("\nWritten by Prophecy\n\n");

/* Get the code */

printf("Unlocking notes:\n");
printf("================\n\n");
printf("To unlock this product, click on Upgrade->Upgrade from Demo->Pay by mail.  This\n");
printf("will display customer serial # at the bottom.  Chances are, it'll look like\n");
printf("this:\n\n");
printf("xxxxxxxxxxxxxxxxxx BDJSBy , where x and y are any decimal number.  You'll\n");
printf("notice there are 18 x's ... this is what I need to generate your Enable Key.\n\n");

printf("Enter the 18 digit numeric part of your customer serial#:  ");
/* Store your name in your_name */
gets(customer_serial);

/* Calculate the length of your name... \0 represents the NULL character which
   is at the end of any C string, and hence used to find length of strings...*/

p=customer_serial; /* Set p so that it points back to the start of the your_name */

/* check to make what user entered is valid */

while (*p != '\0'){
   if (isdigit(*p) == 0){
   	printf("\nYour customer serial must contain only decimal digits.  Press any key to try \nagain...");
      getch();
      goto tryagain;
   }
	p++;
}
p=customer_serial;

/* check to make sure what user entered is the right length */

while (*p != '\0'){
   p++;
   length++;
}
p=customer_serial;

if (length != 18){
   printf("\nThe customer serial is exactly 18 digits long.  Press any key to try again...");
	getch();
   goto tryagain;
}


for(i=0;i<=17;i++){
	code_reversed=code_reversed*10 + (p[i]-48);
   }

code_reversed=code_reversed-1492;

sprintf(temp, "%018.0Lf", code_reversed);

/* reverse code_reversed to give the code */

for(i=17;i>=0;i--){
	q[j]=r[i];
   j++;
}

printf("\nYour enable key is:  %s",code);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -