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

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

misteryuku
20242630
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 ♦
19.8k330206
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

joke
1.3k4934
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

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:

×832
×238
×3

question asked: 18 Apr '12, 02:50

question was seen: 3,136 times

last updated: 18 Apr '12, 06:43

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