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

automated save as plain text

0

in my project i need to save the captured packets info as plain text with only packet source ip destionation ip source mac destination mac

asked 06 Apr '14, 22:48

vengatesh's gravatar image

vengatesh
1111
accept rate: 0%


2 Answers:

0

Please try this

tshark -nr input.pcap -T fields -e eth.src -e eth.dst -e ip.src -e ip.dst

Regards
Kurt

answered 06 Apr '14, 23:56

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

i need to capture from wireshark not from a pcap file sir input.pcap error:"tshark: The file "input.pcap" doesn't exist." and i have to export packet dissections as plain text automatically

(07 Apr '14, 00:54) vengatesh

0

i need to capture from wireshark not from a pcap file

Then try

tshark -i interface -T fields -e eth.src -e eth.dst -e ip.src -e ip.dst

where "interface" is the network interface on which you're capturing.

answered 07 Apr '14, 02:15

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%