First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

export from one field of packets

  • retag add tags

Hello Sorry, my English is not good I wanted to know if there is a way to output only a specific field of a large number of packets in a file format?

kratos9674's avatar
1
kratos9674
asked 2023-02-27 13:13:55 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

tshark is good for exporting fields:

~$ tshark -r ./output.pcap -T fields -e frame.number -e tcp.flags.str -Y tcp.flags.str
50      ·······A···F
51      ·······AP···
52      ·······AP···
53      ·······A····
...

Adding the -Y option with the field name prevents printing blank lines for frames that don't include the field.

Chuckc's avatar
3k
Chuckc
answered 2023-02-27 14:03:55 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer