Questions tagged [sharppcap]

This tag wiki does not currently have an excerpt. Help by creating one

SharpPcap project home.

125 questions
13
votes
2 answers

Pcap.net vs Sharppcap

I just want to listen a network device, capture packets and write the packets to a dummy file. Also i need to filter packets while listening so ill only write packets which passes the filter. I need to do these on .net c#. These are my requirements.…
Emre Erisgen
  • 147
  • 1
  • 1
  • 6
13
votes
2 answers

c# - how to sniff packets in an app without relying on WinPCap?

BACKGROUND: I now understand how to write a C# application that can monitor packets going in/out of the network card on the PC the application is running on. The approach I know relies on http://www.winpcap.org/ being already installed on the PC…
Greg
  • 34,042
  • 79
  • 253
  • 454
12
votes
4 answers

How do I determine if a packet is RTP/RTCP?

I am using SharpPCap which is built on WinPCap to capture UDP traffic. My end goal is to capture the audio data from H.323 and save those phone conversations as WAV files. But first thing is first - I need to figure out what my UDP packets are…
Chris Holmes
  • 11,444
  • 12
  • 50
  • 64
7
votes
3 answers

How to capture HTTP packet with SharpPcap

I would like to capture all incoming HTTP packets of my machine. To do that I'm using SharpPcap which is a WinPcap wrapper. SharpPcap works very well but it captures TCP packets and this is too low level to do what I want. Does anyone know how can I…
Michael Alves
  • 635
  • 1
  • 7
  • 18
6
votes
3 answers

Cannot convert from SharpPcap.RawCapture to PacketDotNet.Packet

I've been following the guide over at http://www.codeproject.com/KB/IP/sharppcap.aspx for implementing a simple packet sniffer to automate authentications for me, I've managed to get to the Filtering section, and have had to make some adjustments to…
Clorith
  • 459
  • 1
  • 6
  • 16
6
votes
1 answer

Reassembling fragmented UDP packet

I have a pcap of various types of traffic over 802.11 (wifi) over udf. The udp (or more precisely IP) fragments the wifi packets due to the MTU. I am currently using SharpPcap to read in and try and access the wifi traffic and am running into the…
user2731104
  • 61
  • 1
  • 3
6
votes
2 answers

Sending my own ARP packet using SharpPcap and Packet.Net

I am trying unsuccessfully so far to send an ARP packet I have created with Packet.Net using SharpPcap. The problem is even though I send the packet using device.SendPacket it doesn't actually get sent, and I have no idea why. This is my…
Cokegod
  • 8,256
  • 10
  • 29
  • 47
5
votes
2 answers

How to get data from TCPPacket using SharpPcap?

I need small sniffer for my report so I went with C# and SharpPcap. packet = Packet.ParsePacket(rawCapture.LinkLayerType, rawCapture.Data); tcpPacket = TcpPacket.GetEncapsulated(packet); I have raw packet with all packet data. Then I get Packet out…
jM2.me
  • 3,839
  • 12
  • 44
  • 58
4
votes
1 answer

Decoding DNS Header

I'm trying to decode DNS packets in c#, and, although it doesn't really matter, I'm using SharpPcap. Everything works well but it seems that the QR and the RCODE fields are returning wrong values. I'm comparing my results with the results from…
Orestis P.
  • 805
  • 7
  • 27
3
votes
1 answer

In SharpPCap How do I find the IP Address of the Device?

I am using a WinPCapDevice and have already initialized it. I just want to be able to get the IP from that device and I cannot find anywhere how to extract the IP address of the Device. If there isnt a way to do it then is there another way to get…
Brandon Stout
  • 359
  • 10
  • 22
3
votes
1 answer

Detect HTTPS using SharpPCap

I am using SharpPCap to filter packets. Does anyone know how to detect if a packet is for a secured http connection?
Chris
  • 357
  • 4
  • 16
3
votes
0 answers

C# SharpPcap send Tcp Packet

Im trying to send a Tcp Packet over SharpPcap to an Server but it dosent work, can someone help me or explain me how i can send TcpPackets with SharpPcap and Packet.Net. More Info's: Im sniffing a connection and trying to send a message to the…
Uther
  • 31
  • 1
3
votes
0 answers

Intercept and Edit packet using SharpPcap

I've looked and can't see to find anything on this. So I have a pc bridged though my main pc, how would I intercept and edit a packet (that i know is going to my other pc) from my main pc? I know how to intercept it, but i can't find anything on…
Alexander Forbes-Reed
  • 2,823
  • 4
  • 27
  • 44
2
votes
0 answers

How can I drop a packet with SharpPacp using WinDivert driver?

I know SharpPcap is mainly developed for packet sniffing not modifying or filtering, but now I can see in its repository that WinDivert is going to be added into project but couldn't find any documentation. How can I tell SharpPcap to use that…
BarbaCoder
  • 39
  • 2
2
votes
2 answers

Howto - setup a filter in sharppcap?

i'm using the sharppcap library and try to setup a filter. My goal is to setup a filter that only add packets from one ip adress and not the whole amount of data of any ip and tcp packets. i had tried the whireshark notation... device =…
Jan Bludau
  • 321
  • 4
  • 11
1
2 3
8 9