⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 openses.c

📁 破解很多程序的序列号算法程序
💻 C
字号:
#include <ctype.h> // toupper, isupper 
#include <stdio.h> // printf, fflush 
#include <conio.h> // getche 

void main() { 
      //Introduction 
      printf("======================== \n"); 
      printf(" Open Sesame Keygen by   \n"); 
      printf(" ManKind                 \n"); 
      printf("======================== \n"); 
  
      // I want the user to input his name 
      // Prompt the user 
      printf("Please enter your name:"); 
      fflush(stdout); // make sure the prompt is flushed from output buffer to the screen 
      // read the name into an array of characters 
      char UserName[100]; // Note: this may crash if you enter more than 100 characters 
      gets(UserName); 
  
      // Then I want to read his name and make the following above substitution 
      // define the new alphabet as a lookup table with an entry for 
      // each caharcter. 
      char Lookup[] = "9xj4t5pyc3vb2enwomi1rl7ku8"; 
  
      // Condition:There are no difference between upper case alphabets with 
      // lower case alphabets, that mean A=9 then a=9 also. 
      // Eliminate invalid letters by writing the translated 
      // character at a different position. 
      char *P, *Q; 
      for (P = Q = UserName; *P; ++P) { 
           unsigned Index = toupper(*P) - 'A'; // place in lookup table 
           if (Index < sizeof Lookup) *Q++ = Lookup[Index]; // translate 
      } 
      *Q = '\0'; // terminate the translated string 
  
      // I want to display the registration code after substitution of the user's name 
      // Note: this will end as soon as a null character is found 
      printf("Registration Code = %s\n", UserName); 
  
      // wait for a keypress before exiting 
      getche(); 
} 

⌨️ 快捷键说明

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