-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
45 lines (40 loc) · 1.48 KB
/
main.cpp
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
#include "Memory/Memory.h"
#include "Hacks/BunnyHop.h"
#include "Hacks/Trigger.h"
#include "Hacks/Esp.h"
#include "misc/Keybinds.h"
#include <unistd.h>
#include <boost/thread.hpp>
#include "iostream"
boost::thread CheckIfAddrValid;
int main() {
//------------------------------------------------------------------------------------//
//Spawn Memory as it is very core...
Memory memory;
//------------------------------------------------------------------------------------//
//Initialise
while(!memory.pid){
memory.getPid("csgo_linux64");
usleep(100);
}
std::cout << "Found Process, PID: " << memory.pid << std::endl;
while(!memory.clientAddr.first) {
memory.clientAddr = memory.getModule("client_client.so");
usleep(100);
}
std::cout << "Found Client Module At: " << memory.clientAddr.first << std::endl;
//------------------------------------------------------------------------------------//
while(!memory.engineAddr.first) {
memory.engineAddr = memory.getModule("engine_client.so");
usleep(100);
}
std::cout << "Found Engine Module At: " << memory.engineAddr.first << std::endl;
memory.setAddr();
//------------------------------------------------------------------------------------//
BunnyHop bunnyHop(&memory);
Trigger trigger(&memory);
Esp esp(&memory);
Keybinds keyBinds(&bunnyHop, &trigger, &esp);
CheckIfAddrValid = boost::thread(&Memory::checkIfValid, &memory);
keyBinds.init();
}