dispather

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 17 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Commands = []string{"CONNECT", "BIND", "UDP ASSOCIATE"}
	AddrType = []string{"", "IPv4", "", "Domain", "IPv6"}
	Conns    = make([]net.Conn, 0)
	Verbose  = false
)
View Source
var LForwardTarget map[string]bool

Functions

func AdminClient

func AdminClient(conn net.Conn)

AdminClient Admin节点作为Client

func AdminHandShake

func AdminHandShake(conn net.Conn, peerNode *node.Node, currentSessionID uint16) (err error)

func AdminParseTarget

func AdminParseTarget(conn net.Conn, peerNode *node.Node, currentSessionID uint16) (host string, err error)

func AdminServer

func AdminServer(conn net.Conn)

AdminServer Admin节点作为Server

func CopyNode2Stdout

func CopyNode2Stdout(input *node.Node, output io.Writer, c chan bool)

func CopyStdin2Node

func CopyStdin2Node(input io.Reader, output *node.Node, c chan bool)

func InitAdminHandler

func InitAdminHandler()

func SendConnectCmd

func SendConnectCmd(peerNode *node.Node, ip string, port uint16)

SendConnectCmd 发送连接命令

func SendDownloadCmd

func SendDownloadCmd(peerNode *node.Node, remotePath string, localPath string) bool

SendDownloadCmd 发送下载命令

func SendLForwardCmd

func SendLForwardCmd(peerNode *node.Node, sport uint16, lhost string, dport uint16)

SendLForwardCmd Forward a local sport to a remote dport lhost:sport => dport

func SendListenCmd

func SendListenCmd(peerNode *node.Node, port uint16)

SendListenCmd 发送监听端口命令

func SendRForwardCmd

func SendRForwardCmd(peerNode *node.Node, rhost string, sport uint16, dport uint16) bool

SendRForwardCmd Forward a remote sport to a local dport lhost:sport => dport

func SendShellCmd

func SendShellCmd(peerNode *node.Node)

SendShellCmd 发送shell命令

func SendSocks5Cmd

func SendSocks5Cmd(peerNode *node.Node, port uint16) bool

SendSocks5Cmd 启动socks5代理

func SendSshConnectCmd

func SendSshConnectCmd(peerNode *node.Node, sshUser string, sshHost string, sshPort uint16, dport uint16, sshAuthMethod uint16, sshAuthData string)

func SendSyncCmd

func SendSyncCmd()

SendSyncCmd 发送同步网络拓扑的命令

func SendUploadCmd

func SendUploadCmd(peerNode *node.Node, localPath string, remotePath string) bool

SendUploadCmd 发送上传命令

Types

This section is empty.

Jump to

Keyboard shortcuts

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