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
5242629
accept rate: 0%


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

link

answered 18 Apr '12, 03:06

grahamb's gravatar image

grahamb ♦
4.2k21564
accept rate: 14%

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

link

answered 18 Apr '12, 05:58

joke's gravatar image

joke
1.2k3729
accept rate: 10%

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

Tags:

×253
×68
×2

Asked: 18 Apr '12, 02:50

Seen: 908 times

Last updated: 18 Apr '12, 06:43

powered by OSQA