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

Packet manipulation with Pcap.net project

I am using Pcap.net to send packets using send buffer with Wireshark file (pcap extension) and my question is there is any way to change the packet's IP during or before playback? Here I fill the buffer with the packets from the file before the…
user979033
  • 5,430
  • 7
  • 32
  • 50
1
vote
1 answer

obtain single website url from a bunch of http packets?

I'm newbie in network programming so please forgive me any mistakes. I'm writing a simple sniffer, which should detect just URLs of websites requested by the user. I'm using pcap.net and I'm able to capture http packets (with tcp port 80 filter) and…
1
vote
2 answers

Tcp Session Reconstruction with Winpcap

I'm trying to reconstruct tcp sessions from my pcap files which have network packets captured using winpcap. I have a project which splits the packets to sessions. So far I can read from pcap files and group packets according to their sessions. What…
varstas
  • 335
  • 10
  • 19
1
vote
2 answers

Using pcapdotnet to send raw ethernet packet

I am using pcapdotnet and would like to send a raw ethernet packet. I am working with the sample found here: http://pcapdotnet.codeplex.com/wikipage?title=Pcap.Net%20Tutorial%20-%20Sending%20Packets I would like to know two things: In order to…
Elad Lachmi
  • 10,406
  • 13
  • 71
  • 133
1
vote
1 answer

Converted pcap file not able to load in veloview

I have captured udp log files. I can create the pcap file with captured udp data from log file using pcapDotnet but the newly created pcap files im not able to open veloview.exe. Tool itself getting crashed but same pcap files i can open in…
user1645200
  • 135
  • 2
  • 13
1
vote
1 answer

How do I change PCap.Net packet data?

I have a (production) WireShark capture file that I need to 'replay' over my (debug) network. I can read and interpret the packets, but I need to tweak a few details before the packets can be sent, like source IP addresses and ports. The problem,…
Frank
  • 431
  • 1
  • 5
  • 25
1
vote
2 answers

C# Convert string from textbox to MacAddress

is there a way how to convert string from textbox in this format (00:15:5D:03:8D:01) to MacAddress variable? I'm using PcapDotNet library.
Torrado36
  • 167
  • 1
  • 2
  • 10
1
vote
2 answers

SIP Session Tracking

I am currently working on a project that collect a users login and extension information through parsing SIP header messages after capturing packets. I am currently using PCAP.net and SIPSorcery libraries to accomplish this. The project is written…
1
vote
1 answer

PcapDotNet only runs on development machine

I'm using the PcapDotNet Library (https://github.com/PcapDotNet/Pcap.Net/wiki) to build a protocol-specific remote sniffer for a private network. I can include the DLLs in Visual Studio 2017 in a C# application, and it runs fine. There are 5 PCAP…
buzzard51
  • 1,372
  • 2
  • 23
  • 40
1
vote
1 answer

Fragment Ipv6 packet using Pcap.Net

So i found this solution for IpV4: private IEnumerable SplitPacket(Packet packet, int numberOfFragments) { IpV4Datagram ipV4Datagram = packet.Ethernet.IpV4; if (ipV4Datagram.Protocol == IpV4Protocol.Tcp || ipV4Datagram.Protocol ==…
user979033
  • 5,430
  • 7
  • 32
  • 50
1
vote
1 answer

C# Pcap.net communication

I would like to ask why is my communicator receiving sent frames. I'm trying to fix this problem using flag PacketDeviceOpenAttributes.NoCaptureLocal for receiving communicator but I'm still receiving sent frames. Could anyone know how to fix this…
Simon Štefunko
  • 33
  • 1
  • 10
1
vote
1 answer

Incorrect reference PcapDotNet.?.dll

Hello I try to use PcapDotNet dll but I can't add reference to my project. It doesn't matter which dll it is. PcapDotNet.Core.dll, PcapDotNet.Base.dll etc. I have yellow exclamation mark near this reference and can't use any methods from this…
Saint
  • 5,397
  • 22
  • 63
  • 107
1
vote
1 answer

redirect sent packets + modification - Pcap.Net

Im using Pcap.Net in a C# app. While browsing a website, i would need to modify all packets except UDP ones to make them go through a proxy. I explain why, im using a proxy, but its not as fast as direct connection. So i would like to modify the…
user3916429
  • 562
  • 6
  • 25
1
vote
1 answer

HttpWebRequest timeout (being blocked) c#

I have a c# application that downloads multiple tiny files from websites (torrents). Some sites restrict the number of downloads per IP per day. I do a HttpWebRequest and if the stream is a valid torrent, I save it to disk. Is there a way for my c#…
1
vote
2 answers

PcapDotNet and Datalink type

I'm trying to manipulate some network captures (pcap format) using Pcap.net. I'm opening the pcap file and creating the dumper with: OfflinePacketDevice selectedDevice = new OfflinePacketDevice(pcapInFile); using (PacketCommunicator PcapReader =…
Hüsk3rDü
  • 583
  • 1
  • 4
  • 12
1 2
3
9 10