Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NetCmd = &gcli.Command{ Name: "net", Desc: "Network related commands. ping, telnet ... etc.", Subs: []*gcli.Command{ NewPingCmd(), NewNMapCmd(), NewNetcatCmd(), NewTelnetClientCmd(), NewTelnetServerCmd(), sshcmd.NewSshExecCmd(), sshcmd.NewSshClientCmd(), }, }
NetCmd 网络工具命令
Functions ¶
func NewNetcatCmd ¶
NewNetcatCmd 实现linux nc(netcat) 工具命令
Linux nc:
# 监听TCP端口 nc -l 8080 # 监听UDP端口 nc -ul 53 # 连接到远程TCP端口 nc example.com 80 # 连接到远程UDP端口 nc -u example.com 53
func NewTelnetClientCmd ¶
NewTelnetClientCmd creates a new Telnet client cmd
func NewTelnetServerCmd ¶
NewTelnetServerCmd creates a new TelnetServerCmd
Types ¶
type NetcatOptions ¶
type NetcatOptions struct {
// contains filtered or unexported fields
}
NetcatOptions netcat命令选项
Source Files
¶
Click to show internal directories.
Click to hide internal directories.