Questions tagged [tshark]

tshark is the command line version of wireshark; a free and open-source packet analyzer.

501 questions
-1
votes
1 answer

Unload protocols from pcap

How can i use the tshark utility to download a list of protocols from a .pcap file? Only protocols are needed.
Alex Rebell
  • 465
  • 3
  • 15
-1
votes
2 answers

Linux Command for getting a dump of hex values bytes from Pcap File

I require a linux command to display a Hexdump of PCAP File. Currently I am using xxd PcapFile.pcap command. With this I am getting a hexdump of pcap file along with other bytes inserted in between and end which do not belong to the pcap file. These…
-1
votes
3 answers

Filter specific value from Tshark JSON output

I would like to extract the "tls.handshake.certificate_raw" values, but without success so far. The big JSON is killing me. Here's my JSON file: Download Thanks in advance!
user3022917
  • 579
  • 2
  • 8
  • 20
-1
votes
1 answer

How to extract media.type from a PCAP using tshark?

I have a pcap file and that contain some http media.type (pdf) . I can able to export media type from wireshark gui. I tried tshark -r run.pcap -T fields -e media.type > sample.raw but no result. Please help me to figure out the issue .
James Arems
  • 87
  • 3
  • 11
-1
votes
2 answers

Wireshark packet details pane info with tshark or scapy?

The information I'd like to automate retrieval of via Bash or Python is what's contained in the Packet Details pane for the last layer, when viewing DIS protocol captured packets. So far I've gotten to the point where I can read the Packet Bytes…
Austin
  • 6,921
  • 12
  • 73
  • 138
-1
votes
1 answer

Will tcpdump capture packets where destination mac address does not match NIC's mac address

I am running some data throughput tests by sending UDP packets using iperf through a VM that does some sort of processing on those packets. My application runs in promiscuous mode, so it will pick up all packets. I saw my application drop some…
Surajit
  • 5
  • 1
  • 6
-1
votes
2 answers

How to extract source ip and host address from a pcap file into a .csv file? Any ideas on a way to do it?

tshark -r example.pcap -Y http.request -T fields -e http.host -e ip.dst -e http.request.full_uri I tried using this command however it just gives me source ip. I need to make sure i get source ip and destination ip so i can list out the websites…
John
  • 1
  • 1
-1
votes
1 answer

network traffic packet enumeration with tshark

Although it sounds easy, I cannot find an answer around.. I just need to enumerate certain packets in a certain pcap file (with tshark). e.g.: how many packets are ipv6.ack? how many packets are udp? and tshark has to print just a number...
George Violettas
  • 334
  • 1
  • 14
-1
votes
1 answer

How to define a flow in Tshark?

I want to use Tshark as a subprocess and I need to define a flow to display its packets, but I don't know the cmd to define a flow in tshark, just I know it in wireshark: ip.src == ipAddr and ip.dst == ipAddrDst and udp.srcport == 33191 and…
-1
votes
1 answer

tshark doesn't always print source ip

How can i get the tcp payload of packets with tshark, and also get the source IP that sent these packets? This command works for most packets, but some packets are still printed WITHOUT a source IP (Why?) : tshark -Y "tcp.dstport == 80" -T fields -d…
Hibuki
  • 544
  • 3
  • 14
-1
votes
1 answer

Beacon Payload Analysis

I am analyzing the traffic beacons generate using tshark and iptraf. I know they are mainly used to determine the proximity of a device and like any other network device the traffic generated by them must be having a header and payload information…
Kitkat
  • 1
  • 1
-1
votes
1 answer

Running tshark in perl script

I am trying to run tshark in a perl script, simply by doing the following - my $filter = "port 68 or 67"; my $capture = "tshark -i eth0 -f $filter -a duration:120 -w pcapture.pcap&"; system($capture); This code is not starting the tshark process.…
user1060517
  • 355
  • 1
  • 5
  • 17
-1
votes
1 answer

While loop not working while using Tkinter

I have a BASH script running that opens a program (tshark) which writes a bunch of values to a logfile. The script then counts the unique values and writes the (count of the) uniques values from the last 3 minutes to a logfile (count3m.log) It also…
Mars
  • 13
  • 1
  • 4
-1
votes
1 answer

Error while executing python code

# -*- coding: utf-8 -*- # coding: utf-8 import sys import os import time b = 'sudo tshark -i eth0 -R “tcp contains “attack”” -T fields -e ip.src -a duration:60>output.txt' a = os.popen(b) time.sleep(32) f = open('output.txt','r') text = 'IP…
Sunny
  • 11
  • 1
  • 3
-1
votes
1 answer

IP filter on .cap file

how to apply filter on an existing .cap file ? so i have a .cap file and want to filter out one particular IP , what is the command for that . I am using wireshark . Thanks
helloworld0722
  • 11
  • 1
  • 1
  • 3
1 2 3
33
34