C#中的TCP端口扫描资源 [英] c# tcp port scanner resources

查看:331
本文介绍了C#中的TCP端口扫描资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁任何.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端口扫描资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆