Documentation ¶
Index ¶
- Variables
- func AdminClient(conn net.Conn)
- func AdminHandShake(conn net.Conn, peerNode *node.Node, currentSessionID uint16) (err error)
- func AdminParseTarget(conn net.Conn, peerNode *node.Node, currentSessionID uint16) (host string, err error)
- func AdminServer(conn net.Conn)
- func CopyNode2Stdout(input *node.Node, output io.Writer, c chan bool)
- func CopyStdin2Node(input io.Reader, output *node.Node, c chan bool)
- func InitAdminHandler()
- func SendConnectCmd(peerNode *node.Node, ip string, port uint16)
- func SendDownloadCmd(peerNode *node.Node, remotePath string, localPath string) bool
- func SendLForwardCmd(peerNode *node.Node, sport uint16, lhost string, dport uint16)
- func SendListenCmd(peerNode *node.Node, port uint16)
- func SendRForwardCmd(peerNode *node.Node, rhost string, sport uint16, dport uint16) bool
- func SendShellCmd(peerNode *node.Node)
- func SendSocks5Cmd(peerNode *node.Node, port uint16) bool
- func SendSshConnectCmd(peerNode *node.Node, sshUser string, sshHost string, sshPort uint16, ...)
- func SendSyncCmd()
- func SendUploadCmd(peerNode *node.Node, localPath string, remotePath string) bool
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 AdminHandShake ¶
func AdminParseTarget ¶
func InitAdminHandler ¶
func InitAdminHandler()
func SendConnectCmd ¶
SendConnectCmd 发送连接命令
func SendDownloadCmd ¶
SendDownloadCmd 发送下载命令
func SendLForwardCmd ¶
SendLForwardCmd Forward a local sport to a remote dport lhost:sport => dport
func SendRForwardCmd ¶
SendRForwardCmd Forward a remote sport to a local dport lhost:sport => dport
func SendSocks5Cmd ¶
SendSocks5Cmd 启动socks5代理
func SendSshConnectCmd ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.