关键字:端口扫描器;IP段扫描;C#的多线程编程
The Implement of Port Scanner Based on C#
Abstract
Along with the rapid development of network technology, the more complication of computer and the more enlarged size of Internet, the more leaks may existed in new system. When computer virus or hacker wants to invade to a system or host, no matter what means their take, it is obvious that they have to scan the system leaks at first. So as far as system security is concerned, no matter in Internet or Intranet, you should actively adopt a strategy to detect the state of the ports on your host computer or firewall. Computer port-scanning technology is one of important means to realize positive defense.
This topic focuses on the study of port scanner to improve understanding of computer security. The port scanner is developed and tested by C# in VC 2005.net environment. By using TCP connect scaning technique, the scanning host use TCP / IP three-shook hands protocol to establish a complete link with the target through the specified host ports. If the port of the specified host replies, it shows that the port is opened. The scanner utilizes multi-thread to implement port scanning for multiple target IP addresses at a given time or scanning a specified port in multiple different IP segments.
Keywords: Port Scanner; IP Scanner; C # Multithreaded Programming