Hi, I'm trying to extract SOAP payloads with timestamps and source/dest IP addresses and ports with the following code:
I’ve succeeded in converting the XML data and timestamps, but asked 08 Oct ‘14, 14:47 arielCo |
One Answer:
The Listener tapinfo is only populated for some specific Listener tap types, such as Is there some specific reason you want to tap the frame instead of the IP packet, or even TCP segment? Because doing " Alternatively, you don't need to get the IP addresses+ports from the tapinfo - you can instead just get them from explicit field extractors, like this:
… Note that the above is just example code - in a real script one would do verification checks to make sure each field extractor returns something before calling its answered 09 Oct ‘14, 07:35 Hadriel |
Thank you - both approaches work but I’m still somewhat confused. Where can I find a concept-level description of dissectors and listeners? The Wiki starts with code examples and jumps to the API reference, but nothing about what they actually do and their relationship; it’s all copying and trial/error.
Hmmm… it depends on what more you want to know. The main Wireshark Lua wiki page has links to wiki pages about Dissectors and Listener taps, and also links to the sample script page which has links to a few tutorial scripts. There’s a dissector tutorial script, for example, with details about how/why things are done.
So if those places don’t answer your questions, I think the best thing would be for you to ask your questions here on the Q&A site (as separate new topics, not inside this topic), and I or others will try answering them; then we can update the wiki’s with the answers if it makes sense to.