[DiscordArchive] Sorry for the spam guys I am close now, I no longer crash when passing my crafted CDatastore so I th
[DiscordArchive] Sorry for the spam guys I am close now, I no longer crash when passing my crafted CDatastore so I th
Archived author: _mrfade_ • Posted: 2024-09-06T12:36:00.208000+00:00
Original source
Sorry for the spam guys I am close now, I no longer crash when passing my crafted CDatastore so I think all I have left is to figure out the packet header :
```
Opcode : 3529
Datastore VMT -> 7ff6b1bf11b0
<------Real packet------>
A8 72 EE B1 F6 7F 00 00 | 00 00 00 00 B3 01 00 00
29 35
<------Fake packet------>
00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00
29 35
[CMSG_CLIENT_PORT_GRAVEYARD 0x3529 (13609)]
```
I just don't understand how this
https://github.com/TrinityCore/TrinityCo...cket.h#L75
relates to the byte buffer am I missing a packing or serialization step ?
Archived author: ModoX • Posted: 2024-09-06T12:40:42.559000+00:00
Original source
VTable address is missing in your crafted packet
Archived author: _mrfade_ • Posted: 2024-09-06T12:42:08.337000+00:00
Original source
the VTable of the CDatastore ?
Archived author: ModoX • Posted: 2024-09-06T12:42:30.094000+00:00
Original source
I was confused for a bit sorry
Archived author: ModoX • Posted: 2024-09-06T12:42:54.717000+00:00
Original source
Mistook ur crafted packet as raw byte dump of object ur using to send
Archived author: ModoX • Posted: 2024-09-06T12:43:06.221000+00:00
Original source
(CDataStore object)
Archived author: _mrfade_ • Posted: 2024-09-06T12:43:24.211000+00:00
Original source
Aye ye, nah that's just my Buffer compared to the original one.
Archived author: Tea • Posted: 2024-09-06T12:43:31.090000+00:00
Original source
that being said, A8 72 EE B1 F6 7F 00 00 looks like an address to me
Archived author: ModoX • Posted: 2024-09-06T12:43:35.615000+00:00
Original source
But still first 8 bytes look like an address
Archived author: _mrfade_ • Posted: 2024-09-06T12:51:20.907000+00:00
Original source
Wouldn't ymir be receiving the exact same buffer though ? - Like isn't it just a static packet header :
```
struct PacketHeader
{
uint32 Size;
uint8 Tag[12];
Word Opcode;
};
```
Then the data in the packet would start, so is that info not handled at all in ymir ?
I know that PacketParser basically just handles the data section and doesn't really touch the packet header.