Questions tagged [sharppcap]

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

SharpPcap project home.

125 questions
0
votes
1 answer

Choppy sound when converting g711 packets to wave file

I'm getting packets from a SIP call using Sharppcap library. So far, so good. But, when I join those packets (G.711 Alaw packets inside a MemoryStream) and convert it with the AlawDecoder dll I got from…
0
votes
2 answers

List devices by IPs?

How could I list the devices by IP instead of name ? I am aware that I can get the device name and description but since I have many devices installed it would be rather easier if I could get it by IP to select one, but I couldnt find any option…
Prix
  • 19,417
  • 15
  • 73
  • 132
0
votes
2 answers

How to get continuous packet by Sharppcap?

I am currently trying to capture an EtherCAT packet sent and received via a program called TwinCAT. TwinCAT is real-time control software for EtherCAT communication on Windows. This program is used to communicate with slaves every 4ms. By the way, I…
hooang
  • 3
  • 3
0
votes
1 answer

Is there a way to filter out syn request packets using c#?

I am new to c# so please bear with me. I am trying to find some answers on the net but I can't seem to do so. I am working on a C# packet capture application that captures the number of SYN requests that the user gets. Is there a way for me to…
0
votes
1 answer

how to get http content with Sharppcap

For my school project we have to do a man in the middle. But we don't succeed in getting HTTP content. I wrote a little thing to reassemble tcp payload data but I only get the HTTP Header and not the source code. I see that on wireshark data are…
Adfop
  • 67
  • 4
0
votes
1 answer

Nuget package referenced library has different names on Linux and Windows

I am working on small packet sniffer which will run on Windows and Linux. For sniffing packets I use SharpPcap. SharpPcap runs with no problems on Windows. On Linux there are some tweaks which are needed to be done to make everything working fine…
0
votes
2 answers

sharppcap: '.' characters instead of spaces with printHex() method

I am successfully parcing '.pcap' files using SharpPcap libary. The goal is to retrieve XML data from the TCP/HTTP packets. In order to do this, I am using the code below (removed null checks to make it more readable): Packet packet =…
Mario
  • 767
  • 1
  • 14
  • 42
0
votes
1 answer

Restarting part of my Code? Problems with SharpPCap

Im running a little Network Sniffer for a Game im playing and im trying to capture certain traffic but encounter a problem that is probably caused by SharpPcap having troubles with multiple TCP-Connections (E.g. when I open or close a second Client.…
Clintono
  • 13
  • 4
0
votes
1 answer

Missing extract method for CaptureEventArgs.Packet

So, I am trying to sniff packets using Sharppcap, and closely following the developer's tutorial for Sharppcap at codeproject, I try to call the extract() method on CaptureEventArgs.Packet. Seems like, there's no implementation for the extract()…
M. Klingert
  • 35
  • 1
  • 6
0
votes
2 answers

Cant join to multicast group c#

In my project I need receive a video through UDP. Source have a IP 224.0.0.21, Sink have a IP 169.254.170.141. I receive video through a port 3956 (This is a valid information from Wireshark). I use SharpPcap for receive UDP traffic, but it have not…
0
votes
1 answer

Offline packet filtering in SharpPcap

I am trying to do an offline capture of the packets from a .cap file using SharpPcap. I intend to capture these packets based on a filter. Following is my code snippet. private static void device_PcapOnPacketArrival(object sender,…
Barry
  • 43
  • 5
0
votes
2 answers

The second LivePCapDevice in SharpPCap doesn't work?

I'm using the lib SharpPCap to capture packets, then analyse them to find the flv video address in PacketArrivalEventHandler function. The main part of class is like this: class addrdetector { private LivePCapDevice device; private…
Yuby
  • 808
  • 7
  • 19
0
votes
1 answer

SharpPcap - capture from standard output

I'm interesting in making a C# program that could be able to capture network traffic from Android device. Using ADB, I'm able to forward traffic from device to windows standard output. Then, the output will be forwarded to Wireshark which is…
Viet-Anh Dinh
  • 75
  • 1
  • 10
0
votes
1 answer

How to monitor the windows loopback adapter using sharppcap and npcap?

I have installed the npcap driver, because I want to monitor the windows loopback adapter. However the loopback adapter is not in the SharpPcap CaptureDeviceList. I see the loopback adapter in Wireshark and Wireshark is able to monitor the loopback…
0
votes
0 answers

Determine Connection Speed of TCP stream using SharpPcap

I am working on a project and i am trying to find a way to determine the connection speed of a tcp stream in C# using sharppcap. Are there any methods i should look into? I have already coded a packet sniffer that collects tcp packets and seperates…
1 2 3
8 9