Temp: log raw CMSG_AUTH_SESSION payload for 12.1.0 layout reversal
This commit is contained in:
@@ -75,6 +75,18 @@ namespace WorldPackets::Auth
|
|||||||
|
|
||||||
void AuthSession::Read()
|
void AuthSession::Read()
|
||||||
{
|
{
|
||||||
|
std::string rawHex;
|
||||||
|
rawHex.reserve(_worldPacket.size() * 3);
|
||||||
|
static constexpr char hexDigits[] = "0123456789ABCDEF";
|
||||||
|
for (std::size_t i = 0; i < _worldPacket.size(); ++i)
|
||||||
|
{
|
||||||
|
uint8 b = _worldPacket[i];
|
||||||
|
rawHex.push_back(hexDigits[b >> 4]);
|
||||||
|
rawHex.push_back(hexDigits[b & 0xF]);
|
||||||
|
rawHex.push_back(' ');
|
||||||
|
}
|
||||||
|
TC_LOG_INFO("network", "CMSG_AUTH_SESSION raw (%zu bytes): {}", _worldPacket.size(), rawHex);
|
||||||
|
|
||||||
uint32 realmJoinTicketSize;
|
uint32 realmJoinTicketSize;
|
||||||
|
|
||||||
_worldPacket >> DosResponse;
|
_worldPacket >> DosResponse;
|
||||||
|
|||||||
Reference in New Issue
Block a user