-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHowUse.cpp
More file actions
53 lines (27 loc) · 1.24 KB
/
HowUse.cpp
File metadata and controls
53 lines (27 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "CheatHelper.hpp"
int main(){
cheat ch;
ch.LoadedDLL("Path to dll","Process ID/PID");//Inject dll
ch.CreatFile("test.txt","Test text");
int result = ch.GetAdmin();
if (result == 1){
// user accept admin rights
}
else{
//user dont accept admin rights
}
DWORD PID = ch.FindProcessId(L"notepad.exe");//Find PID
uintptr_t base = ch.GetModuleBaseAddress(PID, L"test.dll"); //GetModuleBaseAddress
ch.DownloadFile("https://github.com/kotbendi/SimplGuiInjectorDll/releases/download/v1.0/Injector.rar", "lexa.rar"); //download file
ch.CreateConsole("YourConsoleTitle"); //Create Console
std::vector<unsigned int> offset = { 0x11 }; //Your offsets here
ch.FileExists("path to file"); // return true or false
ch.FindWindowByTitle("notepad.exe"); //Find Window by title return true or false
ch.MemoryChain(hproc, &ptr, offset);
ch.ReadPtr(Write handle here, 0x12345678);
int value = ch.ReadMemory<int>(Write handle here, 0x111);
ch.ReadBytes(Write handle here, 0x12345678, 0, 16);
ch.WriteMemory<int>(Write handle here, 0x111, value);
return 0;
}
//More Soon...