MCPcopy Create free account
hub / github.com/evilsocket/shellz / Session

Interface Session

session/session.go:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18type Handler func(sh models.Shell, timeouts core.Timeouts) (error, Session)
19
20type Session interface {
21 Type() string
22 Exec(cmd string) ([]byte, error)
23 Close()
24}
25
26func For(sh models.Shell, timeouts core.Timeouts) (error, Session) {
27 if mgr := managers[sh.Type]; mgr != nil {

Callers 9

cmdWorkerFunction · 0.65
startMethod · 0.65
CloseMethod · 0.65
NewSSHFunction · 0.65
CloseMethod · 0.65
CloseMethod · 0.65
toOutputFileFunction · 0.65
cmdWorkerFunction · 0.65
tunWorkerFunction · 0.65

Implementers 5

KubeSessionsession/kube.go
SSHSessionsession/ssh.go
WinRMSessionsession/winrm.go
TelnetSessionsession/telnet.go
Pluginplugins/plugin.go

Calls

no outgoing calls

Tested by

no test coverage detected