Forums WoW Modding Support Archives TrinityCore Discord Archives [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

[DiscordArchive] Sorry for the spam guys I am close now, I no longer crash when passing my crafted CDatastore so I th

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
09-06-2024, 12:36 PM
#1
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 ?
rektbyfaith
09-06-2024, 12:36 PM #1

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 ?

rektbyfaith
Administrator
0
09-06-2024, 12:40 PM
#2
Archived author: ModoX • Posted: 2024-09-06T12:40:42.559000+00:00
Original source

VTable address is missing in your crafted packet
rektbyfaith
09-06-2024, 12:40 PM #2

Archived author: ModoX • Posted: 2024-09-06T12:40:42.559000+00:00
Original source

VTable address is missing in your crafted packet

rektbyfaith
Administrator
0
09-06-2024, 12:42 PM
#3
Archived author: _mrfade_ • Posted: 2024-09-06T12:42:08.337000+00:00
Original source

the VTable of the CDatastore ?
rektbyfaith
09-06-2024, 12:42 PM #3

Archived author: _mrfade_ • Posted: 2024-09-06T12:42:08.337000+00:00
Original source

the VTable of the CDatastore ?

rektbyfaith
Administrator
0
09-06-2024, 12:42 PM
#4
Archived author: ModoX • Posted: 2024-09-06T12:42:30.094000+00:00
Original source

I was confused for a bit sorry
rektbyfaith
09-06-2024, 12:42 PM #4

Archived author: ModoX • Posted: 2024-09-06T12:42:30.094000+00:00
Original source

I was confused for a bit sorry

rektbyfaith
Administrator
0
09-06-2024, 12:42 PM
#5
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
rektbyfaith
09-06-2024, 12:42 PM #5

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

rektbyfaith
Administrator
0
09-06-2024, 12:43 PM
#6
Archived author: ModoX • Posted: 2024-09-06T12:43:06.221000+00:00
Original source

(CDataStore object)
rektbyfaith
09-06-2024, 12:43 PM #6

Archived author: ModoX • Posted: 2024-09-06T12:43:06.221000+00:00
Original source

(CDataStore object)

rektbyfaith
Administrator
0
09-06-2024, 12:43 PM
#7
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.
rektbyfaith
09-06-2024, 12:43 PM #7

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.

rektbyfaith
Administrator
0
09-06-2024, 12:43 PM
#8
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
rektbyfaith
09-06-2024, 12:43 PM #8

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

rektbyfaith
Administrator
0
09-06-2024, 12:43 PM
#9
Archived author: ModoX • Posted: 2024-09-06T12:43:35.615000+00:00
Original source

But still first 8 bytes look like an address
rektbyfaith
09-06-2024, 12:43 PM #9

Archived author: ModoX • Posted: 2024-09-06T12:43:35.615000+00:00
Original source

But still first 8 bytes look like an address

rektbyfaith
Administrator
0
09-06-2024, 12:51 PM
#10
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.
rektbyfaith
09-06-2024, 12:51 PM #10

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.

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)