Jump to content

Packet Logs


Guest Cypherjb

Recommended Posts

Hey, I just finished my packet logger (HUUUGE thanks to you guys for your work, I snagged your Opcode enum :P) and was wondering if the logs are useful at all to the devs? Or any opcodes in particular for that matter.

Sample output:

[20:15:20]: CNetClient::SendMessage: (Opcode - 0x0391 CMSG_TIME_SYNC_RESP) (Size - 12).
[20:15:20]: CNetClient::SendMessage: (Data - Hex) 91 03 00 00 08 00 00 00 FB BF 
[20:15:20]: CNetClient::SendMessage: (Data - Hex) D8 06 
[20:15:20]: CNetClient::SendMessage: (Data - ASCII) ..........
[20:15:20]: CNetClient::SendMessage: (Data - ASCII) ..
[20:15:23]: CNetClient::GetNetStats: (BandwidthIn - 1.24015) (BandwidthOut - 0.0193766) (Latency - 909).
[20:15:25]: CNetClient::ProcessMessage: (Timestamp - 114873202) (Opcode - 0x00DD SMSG_MONSTER_MOVE) (Size - 58).
[20:15:25]: CNetClient::ProcessMessage: (Data - Hex) DD 00 DB B6 6F F7 76 30 F1 BB 
[20:15:25]: CNetClient::ProcessMessage: (Data - Hex) C2 E1 45 11 06 28 C5 79 38 3B 
[20:15:25]: CNetClient::ProcessMessage: (Data - Hex) 44 31 FF 17 07 00 00 01 00 00 
[20:15:25]: CNetClient::ProcessMessage: (Data - Hex) 08 06 00 00 03 00 00 00 90 A5 
[20:15:25]: CNetClient::ProcessMessage: (Data - Hex) E1 45 8A E5 26 C5 79 A0 3B 44 
[20:15:25]: CNetClient::ProcessMessage: (Data - Hex) FE 27 80 FF 02 80 FF FE 
[20:15:25]: CNetClient::ProcessMessage: (Data - ASCII) ....o.v0..
[20:15:25]: CNetClient::ProcessMessage: (Data - ASCII) ..E..(.y8;
[20:15:25]: CNetClient::ProcessMessage: (Data - ASCII) D1........
[20:15:25]: CNetClient::ProcessMessage: (Data - ASCII) ..........
[20:15:25]: CNetClient::ProcessMessage: (Data - ASCII) .E..&.y.;D
[20:15:25]: CNetClient::ProcessMessage: (Data - ASCII) .'......
[20:15:26]: CNetClient::ProcessMessage: (Timestamp - 114873565) (Opcode - 0x0496 SMSG_AURA_UPDATE) (Size - 17).
[20:15:26]: CNetClient::ProcessMessage: (Data - Hex) 96 04 DB 4D 44 AF 75 30 F1 00 
[20:15:26]: CNetClient::ProcessMessage: (Data - Hex) C0 DD 00 00 19 50 00 
[20:15:26]: CNetClient::ProcessMessage: (Data - ASCII) ...MD.u0..
[20:15:26]: CNetClient::ProcessMessage: (Data - ASCII) .....P.

Obviously I could change the formatting or filter to just specific opcodes if needed. I get both incoming and outgoing data so thats not a problem either. Just curious if there is any use for any of the data. If not, no worries, I wrote it for one of my own projects anyway.

P.S. I realize the team is probably already using packet loggers, what I'm saying is that I can provide quite a lot of data from real-world play on 'retail' servers. I play WoW (retail) a lot so I get craploads of data.

Link to comment
Share on other sites

Just a small idea - you can change the packet display to something more readable ..

For example a piece of tcpdump - http://paste2.org/p/124235

.. and I know about .. 5 opcode sniffers, so perhaps devs already have some, but it's always good to have a new one. :)

edit: err, forgot to add - you can search for that formatting mechanism in tcpdump sources (from where some other projects took it), or perhaps dsniff, I remember such code there as well.

Link to comment
Share on other sites

Just a small idea - you can change the packet display to something more readable ..

For example a piece of tcpdump - http://paste2.org/p/124235

.. and I know about .. 5 opcode sniffers, so perhaps devs already have some, but it's always good to have a new one. :)

edit: err, forgot to add - you can search for that formatting mechanism in tcpdump sources (from where some other projects took it), or perhaps dsniff, I remember such code there as well.

Thanks.

This one isn't just a sniffer though, I have the ability to craft my own packets and send them to the server too. Dunno how useful that kind of functionality is to server devs.

Also, I'm currently adding XML support so I can describe packets and dump them out in a nicer format.

EDIT: Forgot to add, this runs inside WoW.exe because I like being able to use a D3D UI when testing stuff.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use