Ask Your Question
0

export from one field of packets

asked 2023-02-27 13:13:55 +0000

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?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2023-02-27 14:03:55 +0000

Chuckc gravatar image

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.

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: 2023-02-27 13:13:55 +0000

Seen: 136 times

Last updated: Feb 27 '23