有谁任何.NET库或资源,这将帮助我实现一个TCP端口扫描器?
Does anyone knows of any .Net library or resources that will assist me to implement a TCP port scanner?
推荐答案有关的知道简单的一个,那将只尝试连接到每个端口并报告成功/失败,没有任何招数,如只发送ACK包等等 - 你不需要其他任何东西比 System.Net 和的System.Net.Sockets ,创建套接字,尝试连接到主机时,请检查您是否已经成功了。为了获得更好的性能,可以创造更多的插槽,并使用异步方式(BeginConnect / EndConnect)。
For simple one, that will just try to connect to each port and report success / failure, without any "tricks", like sending only ACK packets etc. - you won't need anything else than System.Net and System.Net.Sockets, create socket, try connecting to a host, check if you have succeeded. For better performance, you can create more sockets, and use asynchronous approach (BeginConnect/EndConnect).
更多推荐
C#中的TCP端口扫描资源
发布评论