所属分类:网络编程 开发工具:Visual C++ 文件大小:975KB 下载次数:7 上传日期:2013-03-17 11:07:47 上 传 者:halle1991
说明: 这是一个多线程的,多平台的端口扫描工具,可以实现一般的connect扫描,还有syn扫描,对学习多线程和网络编程的同学有点帮助 (This is a multi-threaded, multi-platform port scanning tool, you can generally connect scan, syn scan bit to help students learning multi-threading and network programming)
SecPoint.com Port scanner
http://www.secpoint.com/Multi-Threaded-TCP-Port-Scanner.html
pscan is a multithreaded TCP Port scanner with possibility to scan any range
of TCP ports on any IP address. It has both Connect and Syn scan features.
History:
--------
## 1.0 initial release
## 1.1 you could use not only port range, but single ports and port lists
(check -p option)
## 1.2 default port list is now not 1-1024, but is a list of frequently
used ports; duplicates check
## 1.3 added more default ports.
## 2.0 - Added option -s for Syn scan.
- Scanning made faster thanks to Syn scan
- Added even more default ports
- Improved error handler for Syn scan
- Improved text output
- Fixed minor bugs:
- changed pathname to oui.txt and port-numbers.txt files
- added missing call to cleanup function WSACleanup
A new branch of the program has been created to support Syn scan.
Syn scan was necessary because under some circumstances of heavy load,
the Connect scan can hang routers. Syn scan is multithreaded and uses
the standard library pcap on Unix/Linux operating systems.
Please be aware that Syn scan requires a higher level of authorization,
if compared to connect sockets: in Unix/Linux pscan requires root
privilege.
In some operating systems, Syn scan is performed using connectionless
"raw" sockets, therefore the usage of pscan is subject to possible
restriction to the usage of raw sockets in such operating systems.
With Syn scan, option -w is not used because the program does not use
connected sockets, so it doesn't have to loop reading a socket until
the timeout is reached. The receive function doesn't have to poll over
a number of sockets, but simply reads the packets passing through the
network card, for all ports, and displays the message of "open port"
when the packet coming from the remote IP contains the information that
the remote port is open. For the same reason, options -a and -n are not
used. The first one because packets sent to closed ports are simply
not being replied to, so they cannot be counted; the second one because
the function that reads packets is one, and performs this by reading
packets from the network card, not from multiple sockets.
Description:
------------
This tool could be used to scan ports of certain IP.
It also could describe each port with standard name (well-known and registered
ports).
To make simple start run it as
./pscan IP
and you will get a list of the most frequently used ports of IP scanned.
But you could choose some options for scan.
./pscan IP [options]
Options:
--------
-p
Could be used like:
-p start-end (-p 130-445)
-p port (-p 137)
-p list (-p 135,137,139,445,1024)
By default (without -p switch) tool will make best assumptions and scan
frequently used ports. Those include ports 1-2000 and our special selection to
make scan more efficient and quick at the same time.
-s
Performs a Syn scan. Default is Connect scan. With Syn scan, -n -w and -a are
not used
-n default: -n 10
number of simultaneous instances of scan. More instances - higher the speed,
but higher system resources. Only for Connect scan.
-w