This tag wiki does not currently have an excerpt. Help by creating one
Questions tagged [sharppcap]
125 questions
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#…

user3784340
- 74
- 5
1
vote
0 answers
SharpPcap - Getting information from packet
I'm trying to get information from packets, like GET/POST requests using SharpPcap and PacketDotNet. I looked different information here on stackoverflow, but I have encoding problems. Information from packets isn't shown properly in every taken…

Dima Leontyev
- 11
- 4
1
vote
1 answer
Capturing DNS responses with PCap.Net?
Q1 - Is it possible to capture DNS request/responses with the library?
Q2 - If yes, once I have the packet does anyone have any sample code
that shows how I could extract the fields from the DNS response? In
particular the IP address that DNS…

Greg
- 34,042
- 79
- 253
- 454
1
vote
2 answers
How can I get the MAC/IP address of a packet device in pcap.net/SharpPcap?
I'm using the PacketDevice or LivePacketDevce in order to send and receive packets. I have 2 network interfaces that I have to use and I can't find an attribute of Packet Device that has it's MAC or IP address. It's a problem using the destination…

Foxman
- 189
- 13
1
vote
1 answer
Get IP address of a LibPcapLiveDevice
Since the SharpPcap project claims to be compatible with Mono I decided to get my project running on a Mac.
For this I had to make the WinPcapDevice a LibPcapLiveDevice and map the WinPcap.dll to the libpcap.dylib.…

wodzu
- 3,004
- 3
- 25
- 41
1
vote
0 answers
How to get the IP of all active machines on my LAN using SharpPcap
I'm trying to get the IP , port and MAC addresses for all machines on my LAN using SharpPcap,
I tried to ping all possible IP addresses according to my LAN base IP address as I thought that SharpPcap can capture the ping replay packet then parse it…

Modar
- 85
- 6
1
vote
0 answers
How to cast ICaptureDevice as WinPcapDevice
I'm looking at the SharpPcap tutorial and am trying to understand how to access the device details, which from this post: In SharpPCap How do I find the IP Address of the Device? indicates that I must cast the ICaptureDevice object into a specific…

Alan
- 3,715
- 3
- 39
- 57
1
vote
1 answer
packet manipulation (dropping and altering)
I am writing a simple network security program in C#.
For capturing the traffic in a network, I will use sharppcap library which can capture all the packets and display their details on the UI.
However, I cannot find any methods in the library that…

user3704347
- 23
- 6
1
vote
1 answer
SharpPcap - Drop packet or alter outgoing packet
Is it possible to either drop a packet or alter a response using SharpPcap? I've been looking online and I've seen older posts that make it seem like it is not possible to drop a packet. I can't tell if it is possible to alter one though.
If not,…

Yecats
- 1,715
- 5
- 26
- 40
1
vote
2 answers
C# SharpPcap Cross-thread operation not valid
Hi I'm trying to convert packet capturing in Example3 in SharpPcap new version SharpPcap-2.2.0rc1.src from Console Application to Windows Forms Application.
I'm facing a problem when I tried to add packets has been captured to ListView control I…

Eyla
- 5,751
- 20
- 71
- 116
1
vote
3 answers
SharpPcap issue
This is my first time to use SharpPcap library.
I created new project with VC# 2008 and I added SharpPcap as a reference to my project.
I post a sample code to get interface of my pc but I'm getting this error:
Error 1 The type or namespace…

Eyla
- 5,751
- 20
- 71
- 116
1
vote
0 answers
SharpPcap and NetworkStream for capturing tcp packets data c#
I have written multiple client server where my client will be some monitoring machine which will sending tcp packets with some data packets. My server code uses NetworkStream to receive data from client. My question is that if it is possible to…

prattom
- 1,625
- 11
- 42
- 67
1
vote
1 answer
SharpPCap missing packets
I'm using SharpPCap to collect IEC61850-9-2LE Sampled Values over Ethernet.
IEC61850-9-2LE Sampled Values consists of several streams, each one sending 4000 packets per second, where the avg packet size is 125 bytes.
Using SharpPCap I'm trying to…

Lorenzo Santoro
- 464
- 1
- 6
- 16
1
vote
1 answer
how to capture ssl traffic using SharpPcap
SharpPcap is a great library. I'm building http packet viewer for linux using it and it works fine! However is it possible to capture and decrypt ssl traffic? From one hand it would be exactly what ssl is designed against and so I would say the…

ren
- 3,843
- 9
- 50
- 95
1
vote
0 answers
Do I need to write CRC 32 to send craft Ethernet packet by using Packet.Net and SharpPcap
I write a code in C# to add MAC header in front of payload and send raw crafted Ethernet Packet by SharpPcap. I can catch the packet from sender by wireshark, but I cannot receive anything in the receiver end. I find the packet length in the send…

Decula
- 494
- 4
- 16