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

Function processOutput

cmd/shellz/run.go:73–83  ·  view source on GitHub ↗
(out []byte, shell models.Shell)

Source from the content-addressed store, hash-verified

71}
72
73func processOutput(out []byte, shell models.Shell) string {
74 outs := tui.Dim(" <no output>")
75 if out != nil {
76 if toOutput == "" {
77 outs = fmt.Sprintf("\n\n%s\n", str.Trim(string(out)))
78 } else {
79 outs = toOutputFile(shell, out)
80 }
81 }
82 return outs
83}
84
85func onTestFail(sh models.Shell, err error) {
86 log.Warning("shell %s failed with: %s", tui.Bold(sh.Name), err)

Callers 1

cmdWorkerFunction · 0.85

Calls 1

toOutputFileFunction · 0.85

Tested by

no test coverage detected