- 论坛徽章:
- 0
|
nc,有很多系统的版本,freebsd也不例外,先运行看看 :-)
$nc
usage: nc [-46DEdhklnrStUuvz] [-e policy] [-i interval] [-p source_port]
[-s source_ip_address] [-w timeout] [-X proxy_version]
[-x proxy_address[:port]] [hostname] [port]
$nc -h
usage: nc [-46DEdhklnrStUuvz] [-e policy] [-i interval] [-p source_port]
[-s source_ip_address] [-w timeout] [-X proxy_version]
[-x proxy_address[:port]] [hostname] [port]
Command Summary:
-4 Use IPv4
-6 Use IPv6
-e policy Use specified IPsec policy
-E Use IPsec ESP
-D Enable the debug socket option
-d Detach from stdin
-h This help text
-i secs Delay interval for lines sent, ports scanned
-k Keep inbound sockets open for multiple connects
-l Listen mode, for inbound connects
-n Suppress name/port resolutions
-p port Specify local port for remote connects
-r Randomize remote ports
-S Enable the TCP MD5 signature option
-s addr Local source address
-t Answer TELNET negotiation
-U Use UNIX domain socket
-u UDP mode
-v Verbose
-w secs Timeout for connects and final net reads
-X proto Proxy protocol: "4", "5" (SOCKS) or "connect"
-x addr[:port] Specify proxy address and port
-z Zero-I/O mode [used for scanning]
Port numbers can be individual or ranges: lo-hi [inclusive]
See ipsec_set_policy(3) for -e argument format
晕倒,和以前用的不一样了,好像功能更强大。。。。。
hoho,捡到宝了,找代码看看先
$cd /usr/src/usr.bin/nc
只有个Makefile,我再找
$cd /usr/src/contrib/netcat
哈哈,找到了。
开linux,移植到linux中试试 :-)
去掉了一些功能以后,终于编译过去了 :-)
1. TCP MD5 signature option
2. Randomize remote ports
在编译时,需要加上 -DSO_REUSEPORT 才能编译通过,奇怪.
有机会把hp,aix,sco,的版本也弄出来,嘿嘿.
![]()
文件:nc.tar
大小:70KB
下载:
下载
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/9802/showart_135009.html |
|