This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I use tshark to analyze packets, and want to save the packets that I concerned into a separate pcap/pcapng file(in order to have a look at the packets later). Now that I can get packet info(pinfo), how can I write it into a pcap file?

asked 02 Apr '14, 20:53

metamatrix's gravatar image

metamatrix
56161619
accept rate: 100%


This command did it for me: -r infile -w outfile -Y Display Filter -F file format

tshark -r vit.pcapng -Y tcp.analysis.flags -w vit_tcpflags.pcap -F pcap
permanent link

answered 03 Apr '14, 09:33

mrEEde's gravatar image

mrEEde
3.9k152270
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×91
×42

question asked: 02 Apr '14, 20:53

question was seen: 27,393 times

last updated: 03 Apr '14, 09:33

p​o​w​e​r​e​d by O​S​Q​A