Skip to content

Commit

Permalink
doc: Update nc.md (#509)
Browse files Browse the repository at this point in the history
* Update nc.md

* Update nc.md

* Update nc.md
  • Loading branch information
admxj committed Jun 2, 2023
1 parent 1668d79 commit d6bc272
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions command/nc.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
nc
===

用于设置路由器,是网络工具中的瑞士军刀。
nc是网络工具中的瑞士军刀

## 补充说明

**nc命令** 全称**netcat**,用于设置路由器。它能通过 TCP 和 UDP 在网络中读写数据。通过与其他工具结合和重定向,你可以在脚本中以多种方式使用它。使用 netcat 命令所能完成的事情令人惊讶。
**nc命令** 全称**netcat**,用于TCP、UDP或unix域套接字(uds)的数据流操作,它可以打开TCP连接,发送UDP数据包,监听任意TCP
和UDP端口,同时也可用作做端口扫描,支持IPv4和IPv6,与Telnet的不同在于nc可以编写脚本。

### 语法

Expand All @@ -17,6 +18,10 @@ nc [-hlnruz][-g<网关...>][-G<指向器数目>][-i<延迟秒数>][-o<输出文
### 选项

```shell
-4 只使用IPV4
-6 只使用IPV6
-c 使用tls连接或者监听
-D 启用socket调试开关
-g <网关> # 设置路由器跃程通信网关,最多可设置8个。
-G<指向器数目> # 设置来源路由指向器,其数值为4的倍数。
-h 在线帮助。
Expand Down

0 comments on commit d6bc272

Please sign in to comment.