红联Linux门户
Linux帮助

FressBSD 下的瑞士军刀

发布时间:2006-11-13 00:18:34来源:红联作者:augustnov
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[s]]
$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[s]]
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 才能编译通过,奇怪.
文章评论

共有 0 条评论