我正在尝试用 C# 编写一个端口扫描器。我对端口扫描方法做了一些研究。
If you are interested, these are the links I found useful:
- http://www.cs.wright.edu/~pmateti/InternetSecurity/Lectures/Probing/index.html ^PPT Presentation^
- http://www.auditmypc.com/freescan/readingroom/port_scanning.asp
- (old) NMAP - The Art of Port Scanning : http://nmap.org/nmap_doc.html
- Port Scanning Techniques : http://nmap.org/book/man-port-scanning-techniques.html
- Port Scanning Interactive Example : http://www.osischool.com/concept/communication/port-scanning
来回答我的问题。这些是端口扫描方法:
- TCP Connect() Scan
- TCP SYN Scan
- TCP FIN Scan
- TCP XMAS Scan
- TCP NULL Scan
- TCP Window Scan
- UDP Scan
但我只实现了TCP Connect() Scan
(显示here)。但这太慢了(测试每个端口需要 >0.5 秒)。为了实现其余方法,我需要数据包级别的访问权限。我需要创建原始数据包。有可能在 C# 中做到这一点吗?如果是这样该怎么做?
最佳答案
关于c# - 在 C# 中实现所有端口扫描技术/在 C# 中创建原始低级数据包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2001300/