Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.73 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main() {
  7.     setlocale(LC_ALL, "rus");
  8.     char password[9];
  9.     cout << "Enter pasword: ";
  10.     cin >> password;
  11.     cout << endl;
  12.     char hack[9] = { 0,0,0,0 };
  13.     bool trigger = false;
  14.     int exNum = 0;
  15.     while (trigger == false)
  16.     {
  17.  
  18.         while (exNum != 8)
  19.         {
  20.  
  21.             for (int i = 0; i < 127; i++)
  22.             {
  23.                 hack[exNum]++;
  24.                 cout << hack[0] << hack[1] << hack[2] << hack[3] << hack[4] << hack[5] << hack[6] << hack[7] << hack[8];
  25.                 system("cls");
  26.                 if (hack[exNum] == password[exNum]) {
  27.                     exNum += 1;
  28.                     break;
  29.                 }
  30.  
  31.             }
  32.         }
  33.         trigger = true;
  34.     }
  35.     cout << hack;
  36.     cout << endl;
  37.     cout << "Press Enter button";
  38.     cin.get();
  39.     cin.get();
  40.     return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement