Versions in this module Expand all Collapse all v2 v2.2.27 Jul 28, 2024 GO-2025-3844 GO-2025-3844: RatPanel can perform remote command execution without authorization in github.com/tnborg/panel in github.com/TheTNB/panel v2.2.26 Jul 13, 2024 GO-2025-3844 GO-2025-3844: RatPanel can perform remote command execution without authorization in github.com/tnborg/panel in github.com/TheTNB/panel Changes in this version + const MsgData + const MsgResize + func NewSSHClient(conf *ClientConfig) (*ssh.Client, error) + type AuthMethod int8 + const PASSWORD + const PUBLICKEY + type ClientConfig struct + AuthMethod AuthMethod + HostAddr string + KeyPath string + Password string + Timeout time.Duration + User string + func ClientConfigPassword(hostAddr, user, Password string) *ClientConfig + func ClientConfigPublicKey(hostAddr, user, keyPath string) *ClientConfig + type Resize struct + Columns int + Rows int + type Turn struct + Session *ssh.Session + StdinPipe io.WriteCloser + WsConn *websocket.Conn + func NewTurn(wsConn *websocket.Conn, sshClient *ssh.Client) (*Turn, error) + func (t *Turn) Close() error + func (t *Turn) LoopRead(logBuff *bytes.Buffer, context context.Context) error + func (t *Turn) Read(p []byte) (n int, err error) + func (t *Turn) SessionWait() error + func (t *Turn) Write(p []byte) (n int, err error)