#include #include #include #include "rknpc.c" char key1[] = "$4DBEE5E6"; char key2[] = "$85A87001"; void main() { char name[60], pad1[60]; unsigned char buf[80], nlen, plen; int i; unsigned short var1=0x9c9d, var2=0x0677; unsigned short var3, var4, var5, var6, tind; unsigned long tval; printf("RK NetPlus 2.3 License Key Generator\n"); printf("Enter the name that will appear in your NetPlus (up to 50 chars)\n>"); scanf("%50[^\n]", name); nlen = strlen(name); plen = 71 - sizeof(key1) - sizeof(key2) - nlen - 1; for (i=0; i>= 8; var3 = (unsigned short)tval; var4 = (unsigned short)(tval >> 16); tind = ((buf[i] ^ var1) & 0xff) << 2; var5 = *(unsigned short *)(rknpc + tind); var6 = *(unsigned short *)(rknpc + tind + 2); var1 = var3 ^ var5; var2 = var4 ^ var6; } printf("\nEnter the below information exactly as it is into the Registration dialog\n"); printf("User Name : %s\n", name); printf("License Key : NP21-%04X-%04X\n", var2, var1); }