Thursday, February 16, 2006

SharpPcap - A .Net WinPcap Wrapper

SharpPcap - A packet capture framework for .NET

"SharpPcap is a packet capture framework for the .NET environment, based on the famous WinPcap component. The purpose of this library is to provide an API for capturing, injecting, analyzing and building packets using any .NET language such as C# and VB.NET.

The following list illustrates the features currently supported by SharpPcap:

  • Enumerating and showing details about physical network interface on a Windows machine.
  • Capturing low-level network packets going through a given interface.
  • Analyzing and parsing the following protocols: Ethernet, ARP, IP, TCP, UDP, ICMP, IGMP.
  • Injecting low-level network packets on a given interface.
  • Handling (reading and writing) offline packet capture files.
  • Injecting packets using Send Queues.
  • Collecting network statistics on a given network interface.

Please see the SharpPcap Tutorial for details on how to use it in your own application.  …"

Sounds cool. I’ve used WinPcap dependant apps a number of times and it’s nice to know that if I need to use it for my apps there’s a .Net wrapper for it…

See the CodeProject article, (SharpPcap - A packet capture framework for .NET) for additional details…

(via http://del.icio.us/tag/.net/ – http://del.icio.us/donm/.net/)

2 comments:

Unknown said...

You can also check out Pcap.Net. It is a WinPcap wrapper written in C++/CLI and C# and it includes a packet interpretation framework.

Greg said...

Nice, thanks!