Click here to Skip to main content
15,916,378 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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[^]
Posted
Updated 21-Mar-17 3:46am
Comments
Dave Kreskowiak 21-Mar-17 10:59am    
Your question points out the glaring fact that you have no idea what a port scanner does or how it does it. If you can't answer both of these questions accurately and in great detail you have no hope of completing this project. If you can't explain it to us how are you going to explain it to a computer that's going to be a lot more picky out it?

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900