This article is a mirror article of machine translation, please click here to jump to the original article.

View: 534678|Reply: 192

[Source] .net is written by SharpPcap, a packet capture tool

  [Copy link]
Posted on 6/27/2016 2:58:22 PM | | | |


Generally, packet capture tools use the WinPcap library to capture packets:

Winpcap (Windows Packet Capture) is the next free, public network access system for the Windows platform. The purpose of developing Winpcap is to provide Win32 applications with access to the underlying network. It is used for direct network programming under Windows system.

Winpcap provides a powerful programming interface that is easily portable between operating systems and is easy for programmers to develop.
What kind of programs need to use Winpcap
Winpcap is used for network analysis, troubleshooting, network security monitoring, and more. Winpcap is particularly suitable for the following classic areas:
1. Network and protocol analysis
2. Network monitoring
3. Communication log recording
4、traffic generators
5. User-level bridges and routes
6. Network intrusion detection system (NIDS)
7. Network scanning
8. Safety tools
There are some aspects that Winpcap can't do. It does not rely on the host's TCP/IP protocol to send and receive packets. This means that it cannot block and cannot process communication data between programs in the same host. It can only "sniff" packets on a physical line. Therefore, it does not work with traffic shapers, QoS scheduling, and personal firewalls.
Winpcap internals
Winpcap is a Win32 platform for packet capture and analysis. Includes a kernel-level packet filter, an underlying DLL (packet.dll) and an advanced system-independent DLL (Wpcap.dll)

However, I can't call WinPcap well in C#, and then I want to write a packet capture tool, so I can only write it in SharpPcap.

SharpPcap is a . NET environment, developed based on the well-known pcap/WinPcap library. Provides capture, inject, analyze, and build capabilities for both C# and VB NET development languages.

The functions implemented are:

It can grab TCP and UDP packets, as well as packets from other machines, that is, ARP

Then, you can set the filter criteria

Demo and source code download:


Tourists, if you want to see the hidden content of this post, pleaseReply






Previous:New generation. .NET Cornerstone: Microsoft .NET Core 1.0 official version download
Next:Secondary encapsulation of Baidu WebUploader open source upload control, streamlining the front-end code (two sentences of code to get the upload)
Posted on 10/14/2021 5:01:16 PM |
Amazing, amazing, thank you for looking for a long time. This allows you to transform it into a traffic analyzer and then log the behavior of users visiting your website by carefully analyzing specific traffic
Posted on 8/23/2021 5:34:35 PM |
Amazing, amazing, thank you for looking for a long time. This allows you to transform it into a traffic analyzer and then log the behavior of users visiting your website by carefully analyzing specific traffic
Posted on 5/17/2019 8:26:07 AM |
Amazing, amazing, thank you for looking for a long time. This allows you to transform it into a traffic analyzer and then log the behavior of users visiting your website by carefully analyzing specific traffic
Posted on 7/5/2016 5:07:52 PM |
Support the landlord
Posted on 1/18/2017 10:49:47 PM |
Support the landlord
Posted on 2/8/2017 10:16:52 PM |
hen bucuo
Posted on 3/28/2017 2:39:12 PM |
Big, big, big, big, etc. and so on
Posted on 4/11/2017 8:20:20 PM |
Good things, urgently needed
Posted on 4/13/2017 5:26:59 PM |
Thank you, good thing
Posted on 5/8/2017 9:19:41 AM |
Support the landlord
Posted on 5/26/2017 5:35:05 PM |
SHDJAHKHDjlAKDSK; FHDSKJLKG; L
Posted on 6/5/2017 11:26:08 AM |

Support the landlord
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com