Ask Your Question
0

mark part of packet as higher level protocol

asked 2019-11-05 21:15:04 +0000

grobelny gravatar image

I think this should be pretty simple but I just cannot find the right words to describe it to Google.

I have a protocol for which I am writing a dissector in Lua. My packets consist of header and payload. I can mark some part of my header as int (eg. payload length) or flags (eg. type of message). As for the payload I would need to mark it as a given protocol that already has dissector in Wireshark (in my example TLS or more specifically Record Protocol format). How do I do that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-11-06 10:20:05 +0000

Jaap gravatar image

Basically you create a subset of the TVB, with the payload data, and hand that to the dissector which can dissect that payload. In order to do so you have to get the handle of this dissector fist.

PS: not a Lua programmer, but this is the gist of it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-11-05 21:15:04 +0000

Seen: 251 times

Last updated: Nov 06 '19