PhieuLang

ELF

Sep 15th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     char input[8];
  7.     char code[7] = "bla bla"
  8.     int eax = 930297619;
  9.     cin>>input;
  10.     for(int ecx=0; ecx<8; ecx++)
  11.     {
  12.         input[ecx] ^= eax;
  13.         if(code[ecx]==input[ecx])
  14.         {
  15.             if(ecx==5)
  16.             {
  17.                 cout<<"Correct !"<<endl;
  18.                 exit();
  19.             }
  20.             else
  21.             {
  22.                 eax^=input[ecx];
  23.             }
  24.         }
  25.     }
  26.    
  27. }
Advertisement
Add Comment
Please, Sign In to add comment