Advertisement
Guest User

patched or nah?

a guest
Jun 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <stdio.h>
  4. #include <string>
  5. #include <vector>
  6. #include <cstdlib>
  7.  
  8. // Made by Chitoge Kirisaki - Contact me on v3rmillion if you need help ^.^ Credit to [FaZe] Undyne for the source code of the console window ;D
  9.  
  10. void Init();
  11.  
  12. using namespace std;
  13.  
  14. BOOL WINAPI AllocConsole(void);
  15.  
  16. void Init() {
  17. AllocConsole(); // Display a console.
  18. freopen("conin$", "r", stdin); // Allows input (commands, for example)
  19. freopen("conout$", "w", stdout); // Displays output (like printing "Hello World")
  20. freopen("conout$", "w", stderr); // Error handling.
  21.  
  22. // Insert code here, do stuff, breakdance, etc...
  23.  
  24. SetConsoleTitle(L"Mysterious Exploit v1.0");
  25. cout << "Mysterious Exploit v1.0 ; Made by Mysterious" << endl;
  26. printf("Authorizing. . .\n")
  27. ;string a;
  28. printf("Enter Username.\n")
  29. ;putchar('>');
  30. cin >> a;
  31. if (a == "username"){ // Replace V3rm with the username you'd like.
  32. printf("Enter Password.\n");
  33. }
  34. else{
  35. ; printf("Wrong Username.\n")
  36. ; printf("Shutting Down...\n");
  37. exit(0);
  38. }
  39. ; string b;
  40. ; putchar('>');
  41. cin >> b;
  42. if (b == "password") // Replace v3rm123 with the password you'd like.
  43. printf("Authorized. Enjoy :D\n");
  44. Sleep(1000);
  45. cout << "Welcome" << a << "\n";
  46.  
  47. // Currently making a ID whitelist which should be pretty simple, I just haven't had the time to update the source code...
  48. do
  49. {
  50.  
  51. cout << ">";
  52. string i;
  53. getline(cin, i);
  54.  
  55. if (i == "cmds")
  56. {
  57. cout << "jp - Jump Power Increase.\n"
  58. cout << "ws - Walk Speed Increase.\n"
  59. cout << "mh - Max Health\n"
  60. }
  61.  
  62. if (i == "jp")
  63. {
  64. int test1 = 1751607620
  65. ; WriteProcessMemory(GetCurrentProcess(), (void *)0x00438CE1, &test1, sizeof(test1), NULL);
  66. }
  67.  
  68. if (i == "ws")
  69. {
  70. int test2 = 1952867652
  71. ; WriteProcessMemory(GetCurrentProcess(), (void *)0x004390A1, &test2, sizeof(test2), NULL);
  72. }
  73.  
  74. if (i == "maxhealth")
  75. {
  76. int test3 = 1936879428
  77. ; WriteProcessMemory(GetCurrentProcess(), (void *)0x00438EC, &test3, sizeof(test3), NULL);
  78. }
  79.  
  80. if (i == "ID")
  81. {
  82. int ID;
  83. ReadProcessMemory(GetCurrentProcess(), (LPVOID)0x016537A8, &ID, sizeof(ID), NULL);
  84. cout << ID << endl;
  85. if (ID == 1){
  86. cout << "I don't really know what to put here...";
  87. }
  88. else{
  89. cout << "...";
  90. }
  91. }
  92.  
  93. } while (true);
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement