Versions in this module Expand all Collapse all v1 v1.5.1 Feb 4, 2022 Changes in this version + func AddPullTunnelConfig(termite *TermiteClient, local_address string, remote_address string) + func AddPushTunnelConfig(termite *TermiteClient, local_address string, remote_address string) + func CreateContext() + func CreateDistributorServer(host string, port uint16, url string) *gin.Engine + func CreateRESTfulAPIServer() *gin.Engine + func Shutdown() + func Signal() — darwin/amd64, linux/amd64, windows/amd64 + func StartSocks5Server(local_address string) error + func TermiteMessageDispatcher(client *TermiteClient) + func WriteTunnel(termite *TermiteClient, token string, data []byte) + type Context struct + CommandPrompt string + Config *config.Config + Current *TCPClient + CurrentTermite *TermiteClient + Distributor *Distributor + Interacting *sync.Mutex + MessageQueue map[string](chan message.Message) + NotifyWebSocket *melody.Melody + PullTunnelConfig map[string]PullTunnelConfig + PullTunnelInstance map[string]PullTunnelInstance + PushTunnelConfig map[string]PushTunnelConfig + PushTunnelInstance map[string]PushTunnelInstance + RESTful *gin.Engine + RLInstance *readline.Instance + Servers map[string](*TCPServer) + Socks5Servers map[string](*socks5.Server) + var Ctx *Context + func GetContext() *Context + func (ctx Context) AddServer(s *TCPServer) + func (ctx Context) DeleteServer(s *TCPServer) + func (ctx Context) DeleteTCPClient(c *TCPClient) + func (ctx Context) DeleteTermiteClient(c *TermiteClient) + func (ctx Context) FindServerByHash(hash string) *TCPServer + func (ctx Context) FindServerListeningAddressByRouteKey(routeKey string) string + func (ctx Context) FindTCPClientByAlias(alias string) *TCPClient + func (ctx Context) FindTCPClientByHash(hash string) *TCPClient + func (ctx Context) FindTermiteClientByAlias(alias string) *TermiteClient + func (ctx Context) FindTermiteClientByHash(hash string) *TermiteClient + type Distributor struct + Host string + Interfaces []string + Port uint16 + Route map[string]string + Url string + type Process struct + Pid int + State processState + WebSocket *melody.Session + WindowColumns int + WindowRows int + type PullTunnelConfig struct + Address string + Server *net.Listener + Termite *TermiteClient + type PullTunnelInstance struct + Conn *net.Conn + Termite *TermiteClient + type PushTunnelConfig struct + Address string + Termite *TermiteClient + type PushTunnelInstance struct + Conn *net.Conn + Termite *TermiteClient + type TCPClient struct + Alias string + GroupDispatch bool + Hash string + Host string + NetworkInterfaces map[string]string + OS oss.OperatingSystem + Port uint16 + Python2 string + Python3 string + TimeStamp time.Time + User string + func CreateTCPClient(conn net.Conn, server *TCPServer) *TCPClient + func (c *TCPClient) AsTable() + func (c *TCPClient) Close() + func (c *TCPClient) EstablishPTY() error + func (c *TCPClient) FileExists(path string) (bool, error) + func (c *TCPClient) FileSize(filename string) (int, error) + func (c *TCPClient) FullDesc() string + func (c *TCPClient) GatherClientInfo(hashFormat string) + func (c *TCPClient) GetConn() net.Conn + func (c *TCPClient) GetConnString() string + func (c *TCPClient) GetHashFormat() string + func (c *TCPClient) GetInteractingLock() *sync.Mutex + func (c *TCPClient) GetInteractive() bool + func (c *TCPClient) GetPrompt() string + func (c *TCPClient) GetPtyEstablished() bool + func (c *TCPClient) GetShellPath() string + func (c *TCPClient) GetUsername() string + func (c *TCPClient) OnelineDesc() string + func (c *TCPClient) Read(timeout time.Duration) (string, bool) + func (c *TCPClient) ReadConnLock(b []byte) (int, error) + func (c *TCPClient) ReadFile(filename string) (string, error) + func (c *TCPClient) ReadFileEx(filename string, start int, length int) (string, error) + func (c *TCPClient) ReadSize(size int) string + func (c *TCPClient) ReadUntil(token string) (string, bool) + func (c *TCPClient) ReadUntilClean(token string) string + func (c *TCPClient) SelectPython() string + func (c *TCPClient) SetInteractive(new bool) bool + func (c *TCPClient) SetPtyEstablished(new bool) bool + func (c *TCPClient) SetWindowSize(ws *WindowSize) + func (c *TCPClient) System(command string) + func (c *TCPClient) SystemToken(command string) string + func (c *TCPClient) UpgradeToTermite(connectBackHostPort string) + func (c *TCPClient) Upload(src string, dst string, broadcast bool) bool + func (c *TCPClient) Write(data []byte) int + func (client *TCPClient) NotifyWebSocketCompilingTermite(progress int) + func (client *TCPClient) NotifyWebSocketCompressingTermite(progress int) + func (client *TCPClient) NotifyWebSocketUploadingTermite(bytesSent int, bytesTotal int) + type TCPServer struct + Clients map[string](*TCPClient) + DisableHistory bool + Encrypted bool + GroupDispatch bool + Hash string + Host string + Interfaces []string + Port uint16 + PublicIP string + ShellPath string + TermiteClients map[string](*TermiteClient) + TimeStamp time.Time + func CreateTCPServer(host string, port uint16, hashFormat string, encrypted bool, ...) *TCPServer + func (s *TCPServer) AddTCPClient(client *TCPClient) + func (s *TCPServer) AddTermiteClient(client *TermiteClient) + func (s *TCPServer) AsTable() + func (s *TCPServer) DeleteTCPClient(client *TCPClient) + func (s *TCPServer) DeleteTermiteClient(client *TermiteClient) + func (s *TCPServer) FullDesc() string + func (s *TCPServer) GetAllTCPClients() map[string](*TCPClient) + func (s *TCPServer) GetAllTermiteClients() map[string](*TermiteClient) + func (s *TCPServer) Handle(conn net.Conn) + func (s *TCPServer) NotifyWebSocketDuplicateTCPClient(client *TCPClient) + func (s *TCPServer) NotifyWebSocketDuplicateTermiteClient(client *TermiteClient) + func (s *TCPServer) NotifyWebSocketOnlineTCPClient(client *TCPClient) + func (s *TCPServer) NotifyWebSocketOnlineTermiteClient(client *TermiteClient) + func (s *TCPServer) OnelineDesc() string + func (s *TCPServer) Run() + func (s *TCPServer) Stop() + type TermiteClient struct + Alias string + DisableHistory bool + GroupDispatch bool + Hash string + Host string + NetworkInterfaces map[string]string + OS oss.OperatingSystem + Port uint16 + Python2 string + Python3 string + TimeStamp time.Time + User string + Version string + func CreateTermiteClient(conn net.Conn, server *TCPServer, disableHistory bool) *TermiteClient + func (c *TermiteClient) AddProcess(key string, process *Process) + func (c *TermiteClient) AsTable() + func (c *TermiteClient) Close() + func (c *TermiteClient) FileSize(path string) (int64, error) + func (c *TermiteClient) FullDesc() string + func (c *TermiteClient) GatherClientInfo(hashFormat string) bool + func (c *TermiteClient) GetConn() net.Conn + func (c *TermiteClient) GetConnString() string + func (c *TermiteClient) GetHashFormat() string + func (c *TermiteClient) GetPrompt() string + func (c *TermiteClient) GetShellPath() string + func (c *TermiteClient) GetUsername() string + func (c *TermiteClient) InteractWith(key string) + func (c *TermiteClient) LockAtom() + func (c *TermiteClient) LockDecoder() + func (c *TermiteClient) LockEncoder() + func (c *TermiteClient) NotifyPlatypusWindowSize(columns int, rows int) + func (c *TermiteClient) OnelineDesc() string + func (c *TermiteClient) ReadFile(path string) ([]byte, error) + func (c *TermiteClient) ReadFileEx(path string, start int64, size int64) ([]byte, error) + func (c *TermiteClient) Recv(msg *message.Message) error + func (c *TermiteClient) RequestStartProcess(path string, columns int, rows int, key string) + func (c *TermiteClient) RequestTerminate(key string) + func (c *TermiteClient) Send(message message.Message) error + func (c *TermiteClient) StartShell() + func (c *TermiteClient) StartSocks5Server() + func (c *TermiteClient) System(command string) string + func (c *TermiteClient) UnlockAtom() + func (c *TermiteClient) UnlockDecoder() + func (c *TermiteClient) UnlockEncoder() + func (c *TermiteClient) WriteFile(path string, content []byte) (int, error) + func (c *TermiteClient) WriteFileEx(path string, content []byte) (int, error) + type WebSocketMessage struct + Data interface{} + Type WebSocketMessageType + type WebSocketMessageType int + const CLIENT_CONNECTED + const CLIENT_DUPLICATED + const COMPILING_TERMITE + const COMPRESSING_TERMITE + const SERVER_DUPLICATED + const UPLOADING_TERMITE + type WindowSize struct + Columns int + Rows int