Skip to content

xops nc

以下列出命令用法和可用选项。已安装版本支持的参数以 --help 为准。

text
网络工具,提供linux中nc命令的部分功能
	用法:
	xops nc -l <port>
	监听指定的端口并输出所有请求内容,linux非root用户无法监听1024以内的端口
	xops nc <ip> <port>
	连接到指定的ip和端口,并将标准输入内容发送到目标地址,请结合管道或重定向使用

Usage:
  xops nc [flags]

Examples:
  xops nc -l 8080
  xops nc <ip> <port>

Flags:
  -h, --help            help for nc
  -l, --listen uint16   需要监听的端口,linux非root用户无法监听1024以内的端口
  -u, --udp             使用UDP协议,默认tcp

Global Flags:
      --color string       ANSI 颜色输出 (auto=自动检测管道/重定向, never=禁用, always=强制启用)
      --debug              开启调试模式 (等同于 --log-level=debug)
      --lang string        界面语言 (zh/en)
      --log-level string   设置内部诊断日志级别 (debug, info, warn, error)

MIT License