C#中的TCP端口扫描资源

编程入门 行业动态 更新时间:2024-10-26 07:40:01
本文介绍了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端口扫描资源

本文发布于:2023-08-07 06:46:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1317572.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:端口扫描   资源   TCP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!