Wireshare DIssector

Have Problems with PokerTH Installation? Here you will find Help.
Post Reply
w2vy
Posts: 18
Joined: Tue Apr 01, 2025 11:24 pm
Been thanked: 1 time

I am working a dissector to parse PokerTH packets and I am seeing some issues with the protoc description and the data

Maybe the protoc spec has changed or the generator I am using is making mistakes...

Code: Select all

init_ack (6)
0000   74 ee 2a fb ee cc ae 8b a9 2c a0 16 08 00 45 00
0010   00 52 f3 bd 40 00 33 06 58 6d 62 67 d0 5e c0 a8
0020   08 0d 1c 42 a0 52 aa 40 d4 76 0b e7 d9 99 80 18
0030   01 fe ac ab 00 00 01 01 08 0a 59 3f dc 19 db 7f
0040   2f ba 
0040         00 00 00 1a 08 06 3a 16 0a 10 07 ed 70 c8
0050   4f 81 44 08 af 64 b7 06 75 db 60 77 10 cd c5 01

3A says field 7, but none defined

player list 12

0040         00 00 00 0a 08 0c 6a 06 08 9e c4 01 10 00
0050   00 00 00 0a 08 0c 6a 06 08 b7 c4 01 10 00 00 00
etc

6A is field 13 type 2
Any ideas what I am doing wrong?

Tom
w2vy
Posts: 18
Joined: Tue Apr 01, 2025 11:24 pm
Been thanked: 1 time

I figured it out... need to rework things a bit.

Once I get a the 10 most common messages working i'll do a PR for review

Tom
w2vy
Posts: 18
Joined: Tue Apr 01, 2025 11:24 pm
Been thanked: 1 time

Here's the first working version I have.
It has a lot of debug stuff and need clean up but works.

It support message types

-- Dispatcher function table
local MESSAGE_TYPE_ANNOUNCE = 1
local MESSAGE_TYPE_INIT = 2
local MESSAGE_TYPE_INIT_ACK = 6
local MESSAGE_TYPE_PLAYERLIST = 12
local MESSAGE_TYPE_GAME_LIST_NEW = 13
local MESSAGE_TYPE_PLAYER_JOINED = 15
local MESSAGE_TYPE_PLAYER_LEFT = 16
local MESSAGE_TYPE_PLAYER_INFO_REQUEST = 18
local MESSAGE_TYPE_PLAYER_INFO_REPLY = 19
local MESSAGE_TYPE_CHAT_MESSAGE = 64
local MESSAGE_TYPE_SPECTATOR_JOINED = 78

I will clean it up and add more messages as I see/need them

It does not handle the long players list, I will fix that (more than one TCP segment needs packer reassembly...)

It's a txt file... rename and add the wireshark plugin folder...

Tom
Attachments
pokerth.lua.txt
(41.2 KiB) Downloaded 22 times
w2vy
Posts: 18
Joined: Tue Apr 01, 2025 11:24 pm
Been thanked: 1 time

see pull request #445
Post Reply