CFree注册器源代码

来源:百度文库 编辑:神马文学网 时间:2024/06/13 06:16:51
#include
main()
{
int i=0;
char Slyar_Key[128]={0};
unsigned int XORCode,Quotient,Tmp,MachineCode,Remainder;
printf("Cfree 3.5 keygen BY Slyar\n");
printf("Website:www.slyar.com\n\n");
printf("请输入机器码:");
scanf("%d",&MachineCode);
XORCode=MachineCode^0x90909090;
Remainder=XORCode%0x25;
Quotient=XORCode;
if (Remainder<0x11) Remainder+=0x11;
while (Quotient!=0)
{
Tmp=Quotient%Remainder;
Quotient/=Remainder;
if (Tmp>=0xa)
{
Tmp=Tmp+0x61+0xf6;
Tmp&=0x0ff;
Slyar_Key[i]=Tmp;
}
else Slyar_Key[i]=Tmp+0x30;
i++;
}
printf("您的注册码为:");
while (i>0) {i--;printf("%c",Slyar_Key[i]);}
printf("\n");
system("pause");
}