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

Hello everyone,

I'm running a windows version of wireshark (if this matters) and I would like to set up something so that I can export csv packet info automatically to a directory (every 30-60s for a few minutes) so that a program I have can run some code on it afterwards.

I figure I need to write some kind of script to do this and was wondering if this was possible to insert something into the program, but the caveat being that I haven't done anything with scripting until this point. If someone could point me in the right direction of where to apply a script in the program and such, it would be greatly appreciated!

Thanks, Nathan

asked 22 Apr '15, 09:25

NathanR's gravatar image

NathanR
6112
accept rate: 0%

Are you planing to generate CSV file at which time? a) at the time of live capturing b) or in generated PCAP file?

(25 Apr '15, 10:14) ankit

I suppose ideally it would generate at live capturing until a few minutes had passed and then everything would stop. I only am concerned about the interactions of one specific address and my home pc address, so I don't need to worry about all the interactions being captured.

(27 Apr '15, 07:49) NathanR

You could look into using tshark with option -T and either fields or PDML, depending on your application/script you intend to write.

permanent link

answered 28 Apr '15, 07:57

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

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:

×1,620
×431
×76
×40
×31

question asked: 22 Apr '15, 09:25

question was seen: 1,765 times

last updated: 28 Apr '15, 07:57

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