Update offsets

This commit is contained in:
Bugisoft 2023-10-12 19:48:27 +02:00
parent 3be878c841
commit c59829b7a0
No known key found for this signature in database
GPG Key ID: 247FD1149C131852
3 changed files with 36 additions and 38 deletions

View File

@ -1,7 +1,5 @@
include(FetchContent)
set(JSON_MultipleHeaders OFF)
FetchContent_Declare(
json
GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent.git

View File

@ -71,7 +71,7 @@ class CopyJob : command
return bytes;
}
vector<unsigned char> get_data_len(size_t data_len, bool image) // should be 107684
vector<unsigned char> get_data_len(size_t data_len, bool image)
{
stringstream ss;
ss << hex << data_len;
@ -82,7 +82,7 @@ class CopyJob : command
data_len_hex = "0" + data_len_hex;
}
vector<unsigned char> data_len_bytes = HexToBytes(data_len_hex); // should be \x01\xa4\xa4
vector<unsigned char> data_len_bytes = HexToBytes(data_len_hex);
switch (data_len_bytes.size()) {
case 1:

View File

@ -102,13 +102,13 @@ int main()
uintptr_t base_address = GetModuleBaseAddress(pid, "GTA5.exe");
char ticket[208]{};
ReadProcessMemory(phandle, (void*)(base_address + 0x2E7B300), &ticket, 208, 0);
ReadProcessMemory(phandle, (void*)(base_address + 0x2E7E380), &ticket, 208, 0);
char session_ticket[88]{};
ReadProcessMemory(phandle, (void*)(base_address + 0x2E7B300 + 0x200), &session_ticket, 88, 0);
ReadProcessMemory(phandle, (void*)(base_address + 0x2E7E380 + 0x200), &session_ticket, 88, 0);
unsigned char session_key[16]{};
ReadProcessMemory(phandle, (void*)(base_address + 0x2E7B300 + 0x608), &session_key, 16, 0);
ReadProcessMemory(phandle, (void*)(base_address + 0x2E7E380 + 0x608), &session_key, 16, 0);
TICKET = ticket;
SESSION_TICKET = string(session_ticket, 88);