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

Is it possible to capture packets live and store it into a pcap file then converting pcap to a windows txt file using tshark or windows shell scripting?

asked 18 Apr '12, 02:50

misteryuku's gravatar image

accept rate: 0%

tshark -i your_interface -V > your_path_to_text_file will write the text output directly to a file.

permanent link

answered 18 Apr '12, 03:06

grahamb's gravatar image

grahamb ♦
accept rate: 22%

To write the output to a pcap file and a text file at the same time:
$ tshark -i your_interface -xV -w test1804.pcap > test1804txt

permanent link

answered 18 Apr '12, 05:58

joke's gravatar image

accept rate: 9%

edited 18 Apr '12, 06:00

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 18 Apr '12, 02:50

question was seen: 3,363 times

last updated: 18 Apr '12, 06:43

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