THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Export to text with tshark

  • retag add tags

Hi guys, how can I export with tshark to text with all the Packet details expanded?

Prtscr of how I do it in Wireshark. http://ibb.co/k2Qp00q

tantal's avatar
3
tantal
asked 2019-05-21 15:15:16 +0000, updated 2019-05-21 15:17:35 +0000
edit flag offensive 0 remove flag close merge delete

Comments

It looks like tshark can't read the disection:
Unknown - aborting dissection Extraneous Data

GSM A-I/F DTAP - Identity Response Protocol Discriminator: Mobility Management messages .... 0101 = Protocol discriminator: Mobility Management messages (0x05) 0000 .... = Skip Indicator: 0 10.. .... = Sequence number: 2 ..01 1001 = DTAP Mobility Management Message Type: Identity Response (0x19) Unknown - aborting dissection Extraneous Data

tantal's avatar tantal (2019-05-22 06:26:45 +0000) edit

Arrrrrgh, after upgrade the tshark output is identitcal.

tantal's avatar tantal (2019-05-22 09:07:51 +0000) edit
add a comment see more comments

2 Answers

1

From the tshark Man Page (and as output by tshark -h):

-V Cause TShark to print a view of the packet details.

There's quite a bit more about controlling output in the Man page.

grahamb's avatar
23.8k
grahamb
answered 2019-05-21 17:39:32 +0000
edit flag offensive 0 remove flag delete link

Comments

-V is not as detailed as export from wireshark. I read the MAN, but just cant find an answer.

tantal's avatar tantal (2019-05-21 18:24:13 +0000) edit

Arrrrrgh, after upgrade the tshark output is identitcal.

tantal's avatar tantal (2019-05-22 09:07:44 +0000) edit

Note that you will probably need to add two-pass processing, -2, to tshark to get absolutely identical output as Wireshark always does two-pass, but it's an extra option for tshark.

grahamb's avatar grahamb (2019-05-22 09:30:05 +0000) edit
add a comment see more comments
0

Use

tshark -P -V -x -r {filename}
Guy Harris's avatar
19.9k
Guy Harris
answered 2019-05-21 19:12:33 +0000
edit flag offensive 0 remove flag delete link

Comments

Still not as detailed as export from wireshark. :(

tantal's avatar tantal (2019-05-22 06:16:24 +0000) edit
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