Advertisement
CrowCJ

Shutdown101

Aug 21st, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3. #include <algorithm>
  4. #include <string>
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7.  
  8. using namespace std;
  9. int countdown=100;
  10. int i;
  11. int start;
  12. double c=0;
  13. static char hack[] = "11000011";
  14. static char hack2[] = "11011000";
  15. static string hack3[] = {"0101","1010","0111","1000","0011","1100","0110","1001"};
  16.  
  17. HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
  18.  
  19. int main()
  20. {
  21. string str;
  22. string str2;
  23.  
  24. str = hack;
  25. str2 = hack2;
  26.  
  27. SetConsoleTextAttribute(hConsole, 10);
  28. cout << "Type any word to start hacking" << " ";
  29. cin >> start;
  30.  
  31. do
  32. {
  33. i++;
  34. c+=0.1;
  35.  
  36. if(i>7)
  37. {
  38. i=0;
  39. }
  40. sort(str.begin(), str.end());
  41. SetConsoleTextAttribute(hConsole, 10);
  42. cout << hack2 << hack[i] << str2 << str << hack2[i] << hack2[i+2] << hack3[i] << '\n';
  43. Sleep(5);
  44. cout << hack2[i] << str << str2 << hack[i] << hack << " " << c << "%" << '\n';
  45. Sleep(5);
  46.  
  47. }
  48. while (next_permutation(str.begin(), str2.end())&c<99.9);
  49.  
  50. if(c>=99.9)
  51. {
  52. cout << '\n' << "Hacking..." << '\n' << endl;
  53. Sleep(2000);
  54. cout << "Hacked, Shutting down..." << '\n' << endl;
  55. Sleep(1000);
  56. system("C:\\WINDOWS\\System32\\shutdown /s /t 0");
  57. }
  58.  
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement