在网络工具中有“瑞士军刀”美誉的NetCat, 在我们用了N年了至今仍是爱不释手。因为它短小精悍(这个用在它身上很适合,现在有人已经将其修改成大约10K左右,而且功能不减少)。现在就我的一些使用心得和一些帮助文档中,做一些介绍与大家共勉。 I#]$H#}Av
1、 了解NC的用法 tsFwFB*
命令:nc –h %mhnd):
技巧:win98用户可以在autoexec.bat加入path=nc的路径,win2000用户在环境变量中加入path中,linux含有这个命令(redhat) kW#{[,7r
1、基本使用 9Fl}"p[>L.
想要连接到某处: nc [-options] hostname port[s] [ports] ... %EZG2J jO)
绑定端口等待连接: nc -l -p port [-options] [hostname] [port] ~ "]6
参数: T4\F=iw4
-e prog 程序重定向,一旦连接,就执行 [危险!!] WheJ 7~
-g gateway source-routing hop point[s], up to 8 0aMw
-G num source-routing pointer: 4, 8, 12, ... );^]
is~
-h 帮助信息 CL^MIcq?
-i secs 延时的间隔 8q6b3q:c
-l 监听模式,用于入站连接 2/9P&c-r