home *** CD-ROM | disk | FTP | other *** search
- /* -= "Runnin' Butt-On" =- [lite version]
- keygen by Lucifer48. Compile with "cc cm_lite.c" */
- #include <stdio.h>
- #define MAX 1024
-
- main(void)
- {
- signed int i, ebx, esi, ebp4, ebp8, serial; /* sizeof(int)=4 */
- char str[MAX];
-
- printf("Your Name (3 chars min): ");
- scanf("%s",&str);
-
- ebx=esi=ebp4=ebp8=0;
- for(i=1; str[i-1]!='\0'; i++)
- {
- ebx += i*str[i-1]; /* no need to put a cast, it's in c++ ! */
- esi = 2*esi + ebx;
- ebp4 = ebp4 + ebx + esi + i;
- ebp8 = ebp8 + ebp4 - esi + ebx;
- }
-
- serial= 0x7FFFFFFF &((ebp4*ebp8 + esi)^ebx);
- serial = (serial^ebx) - ebx;
- printf("Serial: %d\n",serial);
- }
-