Questions tagged [packet-capture]

is for questions about capturing packets of various protocols that are transmitted over a network.

A lot of computer network protocols transmit their contents in packets. Packet capture is the interception of these packets as they are moved over a network of some type.

A packet sniffer captures raw data traveling over a network segment and saves it to a file for analysis.

Software

A software sniffer can generally only capture network data either originating from or going to the computer running it, plus any "broadcast" messages, if the computer is connected to the network via a switch. If the computer is connected to the network via a router, it may be able to capture network data for any device on connected to the same router.

Hardware

A hardware packet sniffer is physically connected to the network by connecting it to a router or switch. Sometimes the router or switch has to be configured to allow the sniffer to capture traffic being routed through it; this is called port mirroring.

Analysis

The captured data can be analyzed by the software that captured it, or by a program specifically designed to analyze the network data.

See Also

  • Wikipedia Article on Packet Analyzers
  • The term packet sniffer is also common and can be considered a synonym.
659 questions
3
votes
2 answers

running `mtr` network diagnostic tool in the background like `nohup` processes

mtr is a great tool for debugging the network packet losses. Here i sample mtr output. My traceroute [v0.85] myserver.com (0.0.0.0) Thu Jan 19 04:10:04 2017 Resolver: Received…
veer7
  • 20,074
  • 9
  • 46
  • 74
3
votes
1 answer

Netsh can't filter a port in windows

I'm using the windows platform tools named "netsh" to do the packet capture. But I can't filter a specified port even when I REALLY do the correct configurations. I using the following command to start a packet capture task: netsh trace start…
scugxl
  • 317
  • 4
  • 15
3
votes
0 answers

How to read packets in Android using Jnetpcap?

I am working on an Android app where I need to capture the packets. I am using VpnService for this purpose. I am able to write the data to a pcap file. Next I want to decode the pcap file. I am using jnetpcap library version 1.3 for this purpose. I…
thedarkpassenger
  • 7,158
  • 3
  • 37
  • 61
3
votes
3 answers

Could anyone suggest a good packet sniffer class for c++?

Could anyone suggest a good packet sniffer class for c++? Looking for a easy insertable class I can use in my c++ program, nothing complicated.
Mike Curry
  • 229
  • 1
  • 5
  • 9
3
votes
0 answers

Want bluetooth sniffer tool for Windows

I am working on a bluetooth project and require some software that could capture the bluetooth packets and then can view (using same or different software) or analysis the packets captured. Can any one help me to give names of softwares that could…
Dpk
  • 311
  • 5
  • 16
3
votes
1 answer

Packet count in hadoop ( with Mapreduce )

Things has been done : Hadoop installation from the following link: http://www.cloudera.com/content/cloudera/en/documentation/cdh4/v4-2-0/CDH4-Installation-Guide/cdh4ig_topic_4_4.html Installed Hping3 to generate flood requests using: sudo hping3…
Ratan Kumar
  • 1,640
  • 3
  • 25
  • 52
3
votes
2 answers

When to use ntohs and ntohl in C?

I'm very confused in when to use ntohs and ntohl. I know when you use ntohs for uint16_t and ntohl uint32_t. But what about those with unsigned int or those where a specific amount of bits is specified (e.g. u_int16_t doff:4;). Here is my working…
Yahya Uddin
  • 26,997
  • 35
  • 140
  • 231
3
votes
1 answer

How can I pipe tsharks output in realtime to c# program

Like the title says, I am wondering how I can output tshark(wireshark command line) packets directly to my c# application. I would like to output the packets so I can process the individual packets in my application. For instance redirect output,…
user1632018
  • 2,485
  • 10
  • 52
  • 87
3
votes
1 answer

network analyzer - handling captured pcap files

I'm about to write a program that analyzes network traffic. after searching for answers and not finding any on the net, a few questions: Capturing network traffic - I'm using the winpcap library for the analyzis. does the capture functionality…
Andrei
  • 31
  • 2
3
votes
0 answers

Disable Ethernet VLAN filter to enable capture of raw packets

I'm writing a rather elaborated software working on almost-exclusive layer-2 Ethernet. The system is really downcut - kernel has no filesystems, no IP stack (yep, just Ethernet drivers and CONFIG_PACKET - I implemented rudimentary ARP and IP with no…
3
votes
2 answers

Filter traffic using wireshark's display filters

I am learning Wireshark as part of a course. I would like to know how to use the wireshark display filters for filtering traffic of a particular application. I tried using the display filter reference for Skype present on the link…
3
votes
1 answer

Packet sniffing with Channel hopping in linux

I want to scan the WiFi on b/g interface, and I want to sniff packets on each channel, by spending 100 ms on each channel. One of the biggest requirements I have is not to store the packets I get (because of less disk space), my application will…
Ouroboros
  • 1,432
  • 1
  • 19
  • 41
3
votes
1 answer

how to print flags in TCP header of raw packets using libpcap

sniffex.c is a program that is based on libpcap , to sniff and display some packet information. How do i modify it so as to print the values of TCP flags - urg , ack , psh , rst , syn and fin ? please help..
trinity
  • 10,394
  • 15
  • 49
  • 67
3
votes
0 answers

How to give priorities to Interrupt handlers in a normal linux kernel?

I am working on precise time stamping of packets being captured from a network. An interrupt is generated at every packet reception. Thus an interrupt handler registered by the Ethernet driver queues the captured packets. I have 2 questions Who…
3
votes
4 answers

Sending UDP data including hex using VB.NET

As a hobby I'm interesting in programming an Ethernet-connected LED sign to scroll messages across a screen. But I'm having trouble making a UDP sender in VB.NET (I am using 2008 currently). Now the sign is nice enough to have a specifications sheet…
SuperRoach
  • 215
  • 1
  • 2
  • 10