Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to build dissectors on TCP streams? #6

Open
h7x4 opened this issue Oct 12, 2023 · 2 comments
Open

Is it possible to build dissectors on TCP streams? #6

h7x4 opened this issue Oct 12, 2023 · 2 comments

Comments

@h7x4
Copy link

h7x4 commented Oct 12, 2023

Hello!

Thank you for making this library. It looks awesome!

I'm trying to build a packet dissector for a protocol that will for the most part be transmitted using TCP streams. Looking through the documentation and the examples, there's no mention of this kind of functionality. According to the wireshark docs, this seems to impose some constraints: https://wiki.wireshark.org/Lua/Dissectors#tcp-reassembly

If this is already possible with the current state of the library, maybe a simple example could be added?

@immanuelhume
Copy link
Contributor

Hi @h7x4, thanks for your interest in this library :) Dissecting data from TCP streams is not possible for now as the there is no way to specify message boundaries across/within segments. Unfortunately, I don't know if it will be supported in the near future, though it wouldn't seem too difficult.

@immanuelhume
Copy link
Contributor

For future reference, the post linked below might be useful if/when adding this feature to wsdf.

https://osqa-ask.wireshark.org/questions/53802/how-dissect-two-segments-of-one-protocol-in-the-same-packet-in-the-same-tcp-segment-lua/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants