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
0
votes
1 answer

Traceroute and packet capture

The following code is required to capture the route taken by a packet as it moves from the local router to destination router. It should print all the intermediate routers and its ip addresses. The code is given below. But the output doesn't list…
0
votes
0 answers

C# SharpPCap Read Packet Content

i'm tryin' to read the content of the packets that i've captured with SharpPCap. This is my little code private void button4_Click(object sender, EventArgs e) { // Retrieve the device list var devices =…
Ldg
  • 261
  • 1
  • 8
  • 17
0
votes
1 answer

Ns-3 Distributed Coordination Function and Collision Avoidance

I am new to NS-3 and I have a UDP WiFi simulation that works fine. I need to expand my simulation by enabling Distributed Coordination Function with Collision Avoidance. Can someone please explain to me exactly how I modify my code to achieve…
0
votes
1 answer

NS-3 trace file packet ID

I have a simple point to point UDP WiFi simulation in NS-3 that outputs data to a trace file. It provides lots of useful data but there is no information that gives a unique ID for each packet. I can't find anything in wireshark either when I open…
0
votes
1 answer

How to capture / grab frames from the video stream?

In my case, the video stream is from Android MediaRecorder. [Update] From some online information, the video stream normally can be fed in fd in the function setOutputFile(FileDescriptor fd). A post related to capture frames is here: "Processing…
user1914692
  • 3,033
  • 5
  • 36
  • 61
0
votes
1 answer

Monitoring incoming and outgoing trafic from browsers/skype/icq/yahoo/messenger etc

I am looking to build an application that monitors all traffic from social programs like skype/icq/yahoo/messenger, that means whats being sent and whats being received. This will also later include browsing tracking, what websites are visisted and…
syncis
  • 1,395
  • 4
  • 25
  • 43
0
votes
1 answer

Spying udp packets in windows with wireshark

I have to capture udp packets coming and leaving port 44301 and 45301. Problem is that my process manager says that there is packet transfer in and out, but my wireshark doesn't find that udp communication, when I try to search activity for that…
The amateur programmer
  • 1,238
  • 3
  • 18
  • 38
0
votes
2 answers

Why is getDeviceList() method in jpcap.JpcapCaptor class native in JEthereal?

I recently downloaded the JEthereal.jar file to capture packet traffic on my internet connection through JEthereal and also to study it. It reads the packets from a .pcap file just fine but on trying to capture packets it gave me a message that:…
Surender Thakran
  • 3,958
  • 11
  • 47
  • 81
0
votes
2 answers

How to program an http tunnel

I basically want to capture all the packets in a selected port and transfer them through HTTP. What is the best way of doing that? Should I use a packet capture program like SharpPcap for that? EDIT: I want to alow for 2 computers that are behing…
geniaz1
  • 1,143
  • 1
  • 11
  • 16
0
votes
1 answer

Fetching Source IpAddress of the broadmessage meesage recieved on port 137

I am trying to fetch the IP address from the broadcast packets sent by a DSL modem and received on port 137 using UDP protocol. I am able to read the IP address when connectivity is present. However, in unidentified network state, when my modem is…
Srinivas
  • 31
  • 7
0
votes
2 answers

c - remove first 4 bytes of data

I'm reading a packet but I need to strip the first four bytes and the last byte from the packet to get what I need, how would you go about doing this in C? /* Build an input buffer of the incoming message. */ while ( (len=read(clntSocket, line,…
txcotrader
  • 585
  • 1
  • 6
  • 21
0
votes
3 answers

Capturing data being transmitted from a mobile by an app or webpage

I'm writing an Android app and I want to capture the receipt data from some shopping websites/apps. Here's the functionality I am trying to achieve - User visits GenericShoppingWebsite User does their shopping and goes through the payment…
sonicboom
  • 4,928
  • 10
  • 42
  • 60
0
votes
1 answer

How can I obtain the MAC and IP addresses of a machine participating in ARP from the packet header data in C?

Thanks for reading, I'm in the midst of a homework assignment in which I need to, among other things, determine the MAC and IP addresses of a remote machine based on the captured packets I have. Using the pcap_loop function, I need to find the…
algorowara
  • 1,700
  • 1
  • 15
  • 15
0
votes
0 answers

capturing informations from web radios audio stream

In some web radio players, whenever a new song is put on the air, the player gives us information about the artist, the song and an image of the album. I'm thinking if there is some possibilities to capture these informations while streaming the web…
0
votes
4 answers

Winpcap - Having troubles sending data

I'm using Tamir's SharpPCap to try to send data to my msn. Currently, for testing purposes, my idea is to wait for any msg received by mymsn@msn.com and then send the packet itself again, that is, make any message appear repeated forever on my msn.…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557