[DiscordArchive] mmm so this is what I am working with atm :
[DiscordArchive] mmm so this is what I am working with atm :
rocessMessage(__int64 a1, unsigned int a2, unsigned int a3, CDatastore* CDatastore, __int64 a5)Archived author: _mrfade_ • Posted: 2024-02-22T17:34:37.704000+00:00
Original source
mmm so this is what I am working with atm :
```cpp
char __fastcall NetClient:
rocessMessage(__int64 a1, unsigned int a2, unsigned int a3, CDatastore* CDatastore, __int64 a5)
```
I've managed to hook that so far, but I am struggling to read the Opcode from the CDatastore wow just crashes out after :
```cpp
std::cout << "Opcode : " << std::hex << *(WORD*)(CData->m_buffer + 0x10) << std::endl;
```
The above is how I read it out of NetSend2 but perhaps I'll have to reverse the CDatastore::Get ?
Archived author: _mrfade_ • Posted: 2024-02-22T17:37:24.323000+00:00
Original source
The sub that I believe is ProcessMessage
ProcessMessage.html
Archived author: MaxtorCoder • Posted: 2024-02-22T17:50:42.303000+00:00
Original source
It's at 0x18 iirc
Archived author: MaxtorCoder • Posted: 2024-02-22T17:51:19.570000+00:00
Original source
Nvm that is a custom struct
Archived author: MaxtorCoder • Posted: 2024-02-22T17:51:20.904000+00:00
Original source
<:Kappa:857703209085435914>
Archived author: _mrfade_ • Posted: 2024-02-22T17:51:35.688000+00:00
Original source
oh ye mb
Archived author: _mrfade_ • Posted: 2024-02-22T17:51:37.413000+00:00
Original source
```
typedef struct {
uint64_t* vmt; // 0x0
uint8_t* m_buffer; // 0x8
unsigned int m_base; // 0x10
int m_alloc; // 0x14
unsigned int m_size; // 0x18
unsigned int m_read; // 0x1C
} CDataStore;
```
Archived author: MaxtorCoder • Posted: 2024-02-22T17:51:54.478000+00:00
Original source
It's at the start of the buffer it seems
Archived author: MaxtorCoder • Posted: 2024-02-22T17:52:13.024000+00:00
Original source
So at the start of the buffer is the opcode and then payload data
Archived author: MaxtorCoder • Posted: 2024-02-22T17:52:14.151000+00:00
Original source