主题:[转帖]C-free3.5 自己动手用C语言来 来看注册码~~
把下面一段 程序在C-free上运行 就能会跳出个框让你输你的 机器编码,你之要输进去后 就能看道你自己的注册码了哈哈~~大家都行动起来吧~~
[em5]自己动手哈~~~
#include<stdlib.h>
#include<stdio.h>
main()
{
int i=0;
char chKey[128]={0};
unsigned int unXORCode,unRemainder,unQuotient,unTmp,unMachineCode;
printf("Machine Code:");
scanf("%d",&unMachineCode);
unXORCode=unMachineCode^0x90909090;
unRemainder=unXORCode%0x25;
unQuotient=unXORCode;
if (unRemainder<0x11) unRemainder+=0x11;
while (unQuotient!=0)
{
unTmp=unQuotient%unRemainder;
unQuotient/=unRemainder;
if (unTmp>=0xa)
{
unTmp=unTmp+0x61+0xf6;
unTmp&=0x0ff;
chKey[i]=unTmp;
}
else chKey[i]=unTmp+0x30;
i++;
}
printf("Your key is:");
while (i>0) {i--;printf("%c",chKey[i]);}
printf("\n");
}
[em5]自己动手哈~~~
#include<stdlib.h>
#include<stdio.h>
main()
{
int i=0;
char chKey[128]={0};
unsigned int unXORCode,unRemainder,unQuotient,unTmp,unMachineCode;
printf("Machine Code:");
scanf("%d",&unMachineCode);
unXORCode=unMachineCode^0x90909090;
unRemainder=unXORCode%0x25;
unQuotient=unXORCode;
if (unRemainder<0x11) unRemainder+=0x11;
while (unQuotient!=0)
{
unTmp=unQuotient%unRemainder;
unQuotient/=unRemainder;
if (unTmp>=0xa)
{
unTmp=unTmp+0x61+0xf6;
unTmp&=0x0ff;
chKey[i]=unTmp;
}
else chKey[i]=unTmp+0x30;
i++;
}
printf("Your key is:");
while (i>0) {i--;printf("%c",chKey[i]);}
printf("\n");
}