c-free注册机.c

来自「看标题就明白了~! 是一个注册机来的」· C语言 代码 · 共 44 行

C
44
字号
int main(int argc, char* argv[])
{int i,p;
char chKey[128] = {0};
unsigned int unXORCode, unRemainder, unQuotient, unTmp, unMachineCode;
printf("Please Key in the Machine Code:\n");
scanf("%d", &unMachineCode);

unXORCode   = unMachineCode ^ 0x90909090;
unRemainder = unXORCode % 0x25;
unQuotient  = unXORCode;
if (unRemainder < 0x11)
{
  unRemainder += 0x11;
};
i = 0;
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("Key is: \n");
while (i >= 0)
{
  printf("%c", chKey[i]);
  i--;
}
printf ("\nExit(Y/N)?");
scanf ("%d",&p);
return 0;

}

⌨️ 快捷键说明

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