本文介绍了Pcapdotnet - 端口扫描器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用.NET开发快速端口扫描程序。 PcapDotNet 库是个好主意吗?如何使用此库实现该功能?我检查了他们的样品,但它们不包含这样的功能。 提前感谢您的帮助。 我尝试过: Pcap.Net教程·PcapDotNet / Pcap.Net Wiki·GitHub [ ^ ]
I would like to develop fast port scanner using .NET. Is the PcapDotNet library a good idea? How to implement that funtionality using this library? I checked their samples, but they do not contain such functionality. Thank you in advance for any help. What I have tried: Pcap.Net Tutorial · PcapDotNet/Pcap.Net Wiki · GitHub[^]
推荐答案Pcap.Net 是 WinPcap 库的包装器,它是一个捕获网络包的库。 但是没有必要捕获端口扫描程序包。端口扫描程序尝试连接到服务并等待回复。捕获这些连接包和回复没有任何意义。您应该阅读端口扫描程序 - 维基百科 [ ^ ]。 您可以查看简单的TCP端口扫描程序 [ ^ ]在CodeProject上首次使用C#进行端口扫描。 如果您想使用图书馆,请查看 GitHub - thomdixon / SaltwaterTaffy :用于.NET的nmap包装程序库 [ ^ ] Nmap:网络映射器 - 免费安全扫描程序的包装器[ ^ ]库。 Pcap.Net is a wrapper for the WinPcap library which is a library to capture network packages. But there is no need to capture packages for a port scanner. A port scanner tries to connect to services and waits for replies. Capturing these connect packages and the replies does not make any sense. You should read about Port scanner - Wikipedia[^] first. You might have a look at Simple TCP Port Scanner[^] here at CodeProject for a first start on port scanning with C#. If you want to use a library have a look at GitHub - thomdixon/SaltwaterTaffy: An nmap wrapper library for .NET[^] which is a wrapper for the Nmap: the Network Mapper - Free Security Scanner[^] library.
更多推荐
Pcapdotnet
发布评论