home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Quantico / km / offexplo.cpp.txt < prev    next >
Encoding:
Text File  |  2000-05-25  |  1.4 KB  |  75 lines

  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<string.h>
  4. #include<stdlib.h>
  5. main()
  6. {
  7. int i,j=0,digit ;
  8. char username[50]="Offline Explorer 1",temp[25] ;
  9. unsigned long eax,ebx=0x6d363c1,esi,reg,edx ;
  10. clrscr() ;
  11. printf("Key Generator Offline Explorer 1.0 by flag eRRatum\n") ;
  12. printf("Visit our Page at http:\\\\all.at\\ekh\n") ;
  13. printf("Enter User Name : ") ;
  14. gets(temp) ;
  15. strcat(username,temp) ;
  16. strcat(username,"Single") ;
  17. for (i=0;i<strlen(username);i++)
  18.   {
  19.   ebx<<=4 ;
  20.   eax=username[i]+ebx ;
  21.   ebx=eax ; eax=ebx ; eax&=0xf0000000 ;
  22.   if (eax!=0)
  23.     {
  24.     esi=eax ; ebx^=(esi >> 0x18) ;
  25.     }
  26.   eax=~eax ;
  27.   ebx&=eax ;
  28.   }
  29. edx=ebx ;
  30. esi=ebx % 0x1b9 ;
  31. ebx<<=16 ; ebx>>=16 ;
  32. i=0 ;
  33. eax=ebx ;
  34. printf("Your Registration Key is : ") ;
  35. do
  36.   {
  37.   i++ ;
  38.   eax/=7 ;
  39.   } while (eax != 0) ;
  40. digit=i ;
  41. do
  42.   {
  43.   gotoxy(digit,5) ; printf("%lu",(ebx%7)+2) ; ebx/=7 ; digit-- ;
  44.   } while (ebx != 0) ;
  45. ebx=edx ; gotoxy(i+1,5) ; printf("-") ;
  46. do
  47.   {
  48.   j++ ;
  49.   edx/=9 ;
  50.   } while (edx != 0) ;
  51. digit=j ;
  52. do
  53.   {
  54.   gotoxy(digit+i+1,5) ; printf("%lu",(ebx%9)+1) ; ebx/=9 ; digit-- ;
  55.   } while (ebx != 0) ;
  56. gotoxy(i+j+2,5) ; printf("-") ;
  57. ebx=1 ;
  58. (char) eax ;
  59. do
  60.   {
  61.   gotoxy(i+j+2+ebx,5) ;
  62.   eax=(esi % 0x15) + 0x41 ;
  63.   esi=esi/0x15 ;
  64.   if (eax>=0x49) eax++ ;
  65.   if (eax>=0x4f) eax++ ;
  66.   if (eax>=0x55) eax+=2 ;
  67.   printf("%c",eax) ;
  68.   ebx++ ;
  69.   } while (ebx<3) ;
  70. printf("\n") ;
  71. textcolor(LIGHTRED) ;
  72. cprintf("Please Visit our page for more cracks.") ;
  73. return (0) ;
  74. }
  75.