I have some pcap files, and i would like just to get a list of protocols that are present on that pcap file. I would like it in a batch mode, not using wireshark
I think tshark is able to do it, but i couldn't find how. any idea?
|
|
I think that
As it can be seen the information displayed will vary a bit depending on which protocol dissector gets to play. So you'll need to do some post-processing to cut the parts you don't need and/or dedup (for instance using @Mark's suggestion in the comment). |
|||||||
|
|
Unlike most other tools, Bro detects application protocols in a port-agnostic fashion. For example, it detects HTTP not on just the standard ports (80, 8080, etc.), but in any TCP connection. Extracting the number of connections (TCP and UDP) is straight-forward:
Example output from a small HTTP trace:
|
|||
|
|
|
tcpdstat will do this for you. I believe it's mentioned in one of Richard Bejtlich's books. |
|||
|
|
|
Have you tried It will give you a hierarchical list of protocols, not sure if it will suite you needs.
To get just the list of protocols you could do some commandline KungFu.
which will give you
|
||||
|
|