SharpPcap v2.02 is out!

Saturday, 28 February 2009 01:06 by Tamir

Chris has posted a new SharpPcap release. It contains some API changes and bunch of important bug fixes. Make sure to check it out on the sourceforge project page:

Way to go Chris! keep up the great work Laughing.

Currently rated 2.1 by 124 people

  • Currently 2.137097/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   SharpPcap
Actions:   E-mail | Permalink | Comments (11) | Comment RSSRSS comment feed

How to fix: Not all devices are shown with SharpPcap

Saturday, 21 February 2009 05:32 by Tamir

I already answered this on the CodeProject forums couple of times (1, 2), but I'll repeat it here so it would be easy to find this topic.

This issue is not specific to SharpPcap but rather a Winpcap issue (I beleive it's a Winpcap bug but couldn't find any info about it).

The issue is that if you use winpcap in a multithreaded application, and you try do FindAllDevices() or even PcapOpen() on a dialup device from a new thread, winpcap will fail by specifying that it doesn't find this device.

To workaround the issue you can call GetAllDevices() and PcapOpen() from the main thread and use the new thread to use the already opened device. If you see similar issue even on a single threaded application, adding a [STAThread] attribute on your Main function will probably fix the issue.

Currently rated 3.0 by 46 people

  • Currently 3.043478/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   SharpPcap
Actions:   E-mail | Permalink | Comments (57) | Comment RSSRSS comment feed

ARP Example

Wednesday, 18 February 2009 02:58 by Tamir

This is an example showing how to use SharpPcap's ARP Resolver class:

Read more...

Currently rated 1.6 by 49 people

  • Currently 1.571429/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   SharpPcap
Actions:   E-mail | Permalink | Comments (70) | Comment RSSRSS comment feed

ARP Resolver C# Class

Wednesday, 18 February 2009 02:54 by Tamir

This is a Class utilizing SharpPcap to resolves MAC addresses from IP addresses using the Address Resolution Protocol (ARP).
See this post for an example showing how to use this class.

Small update: please make sure to always check out the latest version of this class at the SVN repository.

Read more...

Currently rated 2.8 by 8 people

  • Currently 2.75/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   SharpPcap
Actions:   E-mail | Permalink | Comments (24) | Comment RSSRSS comment feed

Sending Packets with SharpPcap - SendTcpSynExample.cs

Tuesday, 17 February 2009 09:31 by Tamir

Here is a sample showing how to build a SYN packet and send it using SharpPcap.
The program prompt the user for a Network Interface, builds a TCP SYN packet, injects it through the interface and print the SYN/ACK reply from the remote host. 

Read more...

Currently rated 5.0 by 3 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   SharpPcap
Actions:   E-mail | Permalink | Comments (28) | Comment RSSRSS comment feed