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

Function onTestFail

cmd/shellz/run.go:85–91  ·  view source on GitHub ↗
(sh models.Shell, err error)

Source from the content-addressed store, hash-verified

83}
84
85func onTestFail(sh models.Shell, err error) {
86 log.Warning("shell %s failed with: %s", tui.Bold(sh.Name), err)
87 sh.Enabled = false
88 if err := sh.Save(); err != nil {
89 log.Error("error while disabling shell %s: %s", sh.Name, err)
90 }
91}
92
93func onTestSuccess(sh models.Shell) {
94 log.Info("shell %s is working", tui.Bold(sh.Name))

Callers 1

cmdWorkerFunction · 0.85

Calls 3

WarningMethod · 0.80
SaveMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected