netcmd

package
v0.0.0-...-f626111 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNMapCmd

func NewNMapCmd() *gcli.Command

NewNMapCmd 实现nmap扫描 tcp 工具命令

func NewNetcatCmd

func NewNetcatCmd() *gcli.Command

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 NewPingCmd

func NewPingCmd() *gcli.Command

NewPingCmd 实现ping工具命令,增强支持多个IP

func NewTelnetClientCmd

func NewTelnetClientCmd() *gcli.Command

NewTelnetClientCmd creates a new Telnet client cmd

func NewTelnetServerCmd

func NewTelnetServerCmd() *gcli.Command

NewTelnetServerCmd creates a new TelnetServerCmd

Types

type NetcatOptions

type NetcatOptions struct {
	// contains filtered or unexported fields
}

NetcatOptions netcat命令选项

type PortScanResult

type PortScanResult struct {
	Port    int
	State   string
	Service string
	Reason  string
}

PortScanResult 端口扫描结果

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL