MCPcopy Index your code
hub / github.com/evilsocket/shellz / LoadPlugin

Function LoadPlugin

plugins/plugin.go:29–37  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

27}
28
29func LoadPlugin(path string) (error, *Plugin) {
30 if p, err := plugin.Load(path); err != nil {
31 return err, nil
32 } else {
33 return nil, &Plugin{
34 Plugin: p,
35 }
36 }
37}
38
39func (p *Plugin) NewSession(sh models.Shell, timeouts core.Timeouts) (err error, clone *Plugin) {
40 p.Lock()

Callers 2

LoadFunction · 0.85
NewSessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected