Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "rus");
- char password[9];
- cout << "Enter pasword: ";
- cin >> password;
- cout << endl;
- char hack[9] = { 0,0,0,0 };
- bool trigger = false;
- int exNum = 0;
- while (trigger == false)
- {
- while (exNum != 8)
- {
- for (int i = 0; i < 127; i++)
- {
- hack[exNum]++;
- cout << hack[0] << hack[1] << hack[2] << hack[3] << hack[4] << hack[5] << hack[6] << hack[7] << hack[8];
- system("cls");
- if (hack[exNum] == password[exNum]) {
- exNum += 1;
- break;
- }
- }
- }
- trigger = true;
- }
- cout << hack;
- cout << endl;
- cout << "Press Enter button";
- cin.get();
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement