Questions tagged [pcap.net]

Pcap.Net is a .NET wrapper for WinPcap written in C++/CLI and C#. It Features almost all WinPcap features and includes a packet interpretation framework.

Pcap.Net is a .NET wrapper for WinPcap written in C++/CLI and C#. It Features almost all WinPcap features and includes a packet interpretation framework. See http://pcapdot.net

139 questions
1
vote
0 answers

Split packet (fragmentation) using PcapDotNet

I try to Split packet (fragmentation) using PcapDotNet and found this So this is my function: private IEnumerable SplitPacket(Packet packet, int numberOfFragments) { IpV4Datagram ipV4Datagram = packet.Ethernet.IpV4; if…
user3328870
  • 341
  • 2
  • 7
  • 23
1
vote
1 answer

pcap.net communicator buffers packets while thread is stopped

I am using pcap.net to capture packets. The method that captures packets is running in a new thread. When I want to stop/resume the capture I use the ManualResetEvent to stop/resume the thread. it works fine, the problem is when I break the capture…
Ofek Agmon
  • 5,040
  • 14
  • 57
  • 101
1
vote
1 answer

Continue capture after break with pcap.net

I am working with pcap.net. I have a communicator that recieves packets. At some point I call the Break() function to stop the capture. after I stopped the capture, I want to continue the capture at some point.. I tried using the…
Ofek Agmon
  • 5,040
  • 14
  • 57
  • 101
1
vote
1 answer

C# PCAP.NET how to send a valid TCP request?

I wil try using PCAP.NET to send TCP Request from my computer to my server but i don't see request into the server? Send from my PC and showing in Wireshare here But can't see this TCP Request on my server, please help. here is my code using…
Viet Nguyen
  • 2,285
  • 2
  • 26
  • 43
1
vote
1 answer

How to stop SendBuffer in the middle (PcapDot.Net project)?

I am using PcapDot.Net project Dlls to send packets (using Pcap file). my question is if i want to stop the transmit in the middle i try PacketCommunicator.Break() and i can see with Wireshark that it still continue to send packets. I also try…
user2214609
  • 4,713
  • 9
  • 34
  • 41
1
vote
2 answers

ARP poisoning to myself

I'm using PcapDotNet to create ARP poison packets with the next code: using (PacketCommunicator communicator = selectedDevice.Open(100, PacketDeviceOpenAttributes.Promiscuous, 1000)) { while (true) { …
1
vote
0 answers

about send syn tcp Packet to Scan HTTP Proxy Server by Pcap.net

I want to Scan HTTP Proxy Server very fast I find a solution,i can use Pcap.net but question is, how can i Scan HTTP Proxy Server by send syn tcp packet using pcap.net there is a sample in codeplex 。but it dones't math my question…
zhangrou
  • 11
  • 1
1
vote
1 answer

C# Pcap.Net Send TCP, HTTP Packet not work

I will using Pcap.Net 0.10.0 (67076) for send TCP or HTTP packet but not work, only work with UDP Packet?? I can see UDP Packet showing in TCPViewer but now show with TCP or HTTP packet. I using windows 7 64bit but i really build application x86…
Viet Nguyen
  • 2,285
  • 2
  • 26
  • 43
1
vote
1 answer

How to get audio data from rtp packet...?

I'm using .net to do call recroding with pcap.net. till now I have got the rtp packet. And its length is 32 bytes. The codec used is G729 and payload type is 18. byte[] bytes = HexString2Bytes(udp.Payload.ToHexadecimalString()); string…
Binu Babu
  • 127
  • 1
  • 9
1
vote
1 answer

How to auto select device to send packets into internet with PcapDotNet?

I'm doing some experimentation with sending/getting data from internet using PcapDotNet, starting with this example. What bothers me is, that here you've got to select a device to send your packets through. When I was doing some higher level (even…
Arsen Zahray
  • 24,367
  • 48
  • 131
  • 224
1
vote
1 answer

Need a list of Pcap.Net members or classes?

Need a list of Pcap.Net members or classes? Their website doesn't have much documentation and have looked around in the forums. I have found.. PacketTs = Packet.Timestamp.ToString("yyyy-MM-dd hh:mm:ss.fff") PacketS =…
user1432290
  • 151
  • 1
  • 3
  • 12
0
votes
2 answers

pcap.net block or edit packets

I want to manipulate a games roomlist, for filtering the maps. My idea was, to filter the incoming packets for new rooms. I can't find anything about how to edit or block incoming packets on the fly with pcap.net in c#. is this possible to do?
cyptus
  • 3,346
  • 3
  • 31
  • 52
0
votes
1 answer

Wrap ReceivePackets() into Thread/Task/etc causes an error (Pcap.Net library)

How can I wrap the ReceivePackets into Thread/Task/Backgroundworker? I tried to use all these, but I got error: "System.AccessViolationException system.accessviolationexception attempted to read or write protected memory" Thats my try. thread…
Yonka2019
  • 1
  • 4
0
votes
1 answer

Capture network packet of a different PC within the same network with pcap.net

I am trying to get the details when a VOIP phone rings. The hardware phone is connected to the same network. With softphone I can get the device details as per the given example with the source. IList allDevices =…
Anup
  • 115
  • 5
  • 15
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…