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

Function NewSSHTun

session/ssh_tun.go:20–32  ·  view source on GitHub ↗
(sh models.Shell, timeouts core.Timeouts)

Source from the content-addressed store, hash-verified

18}
19
20func NewSSHTun(sh models.Shell, timeouts core.Timeouts) (error, Session) {
21 err, s := NewSSH(sh, timeouts)
22 if err != nil {
23 return err, nil
24 }
25
26 tun := &SSHTun{
27 SSHSession: s.(*SSHSession),
28 tunnel: sh.Tunnel,
29 }
30
31 return tun.start(), tun
32}
33
34func (t *SSHTun) Type() string {
35 return "ssh.tunnel"

Callers

nothing calls this directly

Calls 2

startMethod · 0.95
NewSSHFunction · 0.85

Tested by

no test coverage detected