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
2 answers

Winpcap simple question - how to send packets to a specified ip/port?

I read the tutorials and so, but I am not getting it. It does let you send packets, but how can you tell Winpcap where to send those packets? Is there any header I should put on the packets so it will know to which ip/port's to forward it? I mean.…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
0
votes
3 answers

How to check what connections a given process has created to the internet

I mean, if you use tools like NetLimiter, they let you know that a given process that connections to IP1, IP2, etc. I am using packet sniffing for my application, but I only need to packet sniff one application, so I'd like to know to what ip…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
0
votes
1 answer

what is the difference between packets Ajax sends and normal http packets?

is there any difference between the packets being sent by Ajax, and normal packets (in attributes like source port,...)? or how can I distinguish Ajax packets from others when I'm capturing packets with jpcap? How Ajax sends packets? is it by an…
Alireza
  • 4,347
  • 3
  • 20
  • 31
0
votes
1 answer

WinDivert: What is the reason behind the error message "error: failed to open Divert device (110)"?

I tried to install WinDivert in my machine (Windows 7 64-bit OS). I tried with both 32-bit and 64-bit version. However, I failed at both of the cases and received the error message: "error: failed to open Divert device (110)". I followed Section 2…
Ashiq
  • 307
  • 2
  • 10
0
votes
1 answer

capturing network packets with accurate timestamp

i'm capturing network packets( a transport stream) along with its arrival time using winpcap library. But I'm facing some issues.Whenever I play audio on my machine or copy a large file from network, the timing information of my captured packets…
0
votes
1 answer

Python Scapy and read a pcap in reverse mode

I'm reading a pcap file using the rdpcap function: s = rdpcap(pcap) I'd like to know how to reverse s: it should be a list, but I tried with: rev_s = s.reverse() and it doesn't work: it gives me the SyntaxError: invalid syntax error. Can anyone…
auino
  • 1,644
  • 5
  • 23
  • 43
0
votes
1 answer

tcpdump implementation/adaptation

I want to make an iPad app that analyze the data traffic using: "tcpdump" The app should be somehow a implementation/adaptation/wrapper the/for the "tcpdump" command. I zapped through the http://www.tcpdump.org/, but I want to save time, so I…
0
votes
1 answer

How to capture packets

Is there any way to capture and analyze packets with windows phone 7? For example can i use sharppcap or pcap.net in order to develop an application which capture packets? Thanks.
user1005633
  • 625
  • 3
  • 9
  • 23
-1
votes
1 answer

Unknown Byte Received

Capturing IP Packets by my own BitReader ( Reading Bit By Bit ) public class BitReader { int Index; byte Current; Stream Reader; public BitReader ( Stream Memory ) { Reader = Memory; } public bool? ReadBit (…
Ahmed Ghoneim
  • 6,834
  • 9
  • 49
  • 79
-1
votes
1 answer

Construct a pcap record from a csv record using C# .Net libraries

I have a CSV record as shown below. "1","0.000000","2.1.1.2","2.1.1.1","IPv4","1010","Fragmented IP protocol (proto=ICMP 1, off=0, ID=b5d0) [Reassembled in #2]" My requirement is to convert this single record into a pcap record as shown in below pic…
-1
votes
1 answer

How do I extract the tcp data packet from Wireshark?

This is a "CTF Challenge" (a set of online infosec challenges) and I have become stuck. I noticed in the conversation one person asks for the other person to send the salted password file. I wanted to grab that data so I right clicked it and copied…
-1
votes
1 answer

Why am I to listen to all traffic in my network?

I have the following network layout: Cable Modem (in modem mode) => Asus RT-AC68U => Aruba Instant On 1930 24G switch => NETGEAR 16 Port switch (GS316P). I wanted to do some network traffic capture so I installed Wireshark on my MacBook Pro. I was…
GreenLantern22
  • 489
  • 5
  • 10
-1
votes
2 answers

Wireshark not capturing packets when applying "tcp and host 157.240.23.35" (157.240.23.35= ip address of facebook)

I am trying to Capture all TCP traffic to/from Facebook, during the time when i log in to my Facebook account using this "tcp and host 157.240.23.35" capture filter, but it is not capturing any packets. I found the ip address of Facebook on cmd…
vansika
  • 55
  • 1
  • 2
  • 7
-1
votes
3 answers

Distinguishing file downloads from web-page requests at the network layer

I'm using a packet sniffer on Windows. How do you tell the difference between a packet that is downloading a file and a packet that is loading a website or just navigating a website? I realise that http is not a packet and it's on top of a TCP…
DSTR3
  • 31
  • 4
-1
votes
1 answer

Different Types of Packets

I'm using a sniffer and I would like to know is there a way to tell a download packet from a packet that comes up when you go to a website? Are the headers different? If so, what is the difference? Is the size different? Any clarification is…
DSTR3
  • 31
  • 4