Posts Tagged 黑客工具

Tool:NC

Posted by on 星期一, 19 四月, 2010

NC单击下载

著名工具,有网络军刀之称。

应用举例:

在本地监听80端口,并用浏览器访问观察浏览器发出的http请求。

执行:nc -L -vv -p 80

nc

其中:

  • -l表示监听(大写L表示当连接断开后继续监听,小写l则在连接断开后退出nc)
  • -v表示详细信息(两个v则更详细)
  • -p表示本地监听(绑定)端口

更多参数:

[v1.10 NT]
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [options] [hostname] [port]
options:
-d detach from console, stealth mode

-e prog inbound program to exec [dangerous!!]
-g gateway source-routing hop point[s], up to 8
-G num source-routing pointer: 4, 8, 12, ...
-h this cruft
-i secs delay interval for lines sent, ports scanned
-l listen mode, for inbound connects
-L listen harder, re-listen on socket close
-n numeric-only IP addresses, no DNS
-o file hex dump of traffic
-p port local port number
-r randomize local and remote ports
-s addr local source address
-t answer TELNET negotiation
-u UDP mode
-v verbose [use twice to be more verbose]
-w secs timeout for connects and final net reads
-z zero-I/O mode [used for scanning]
port numbers can be individual or ranges: m-n [inclusive]