home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Quantico / km / ep398blk.c.txt < prev    next >
Encoding:
Text File  |  2000-05-25  |  725 b   |  37 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int main()
  6. {
  7.     int buf[30];
  8.     char sbuf[100];
  9.     int i, cnt=0;
  10.  
  11.     printf("EMULive Pro Video Producer v3.98b License Key Generator\n");
  12.  
  13.     printf("Enter the system code from EMULive registration dialog\n>");
  14.     gets(sbuf);
  15.     cnt = strlen(sbuf);
  16.     if (cnt & 1) {
  17.         printf("Invalid system code\n");
  18.         return 1;
  19.     }
  20.     cnt >>= 1;
  21.     for (i=0; i<cnt; i++)
  22.         if (sscanf(sbuf + (i << 1), "%2x", buf + i) == 1)
  23.             buf[i] ^= 0x40;
  24.         else {
  25.             printf("Invalid system code\n");
  26.             return 1;
  27.         }
  28.  
  29.     printf("\nSystem Key : ");
  30.     for (i=0; i<cnt; i++)
  31.         printf("%02X", buf[i]);
  32.  
  33.     printf("\n");
  34.     printf("\nEnter the above key into your EMULive Pro registration dialog (all CAPS)\n");
  35.  
  36.     return 0;
  37. }