MCPcopy Create free account
hub / github.com/Z3ratu1/geacon_plus / parseCommandShell

Function parseCommandShell

command/misc.go:129–135  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

127}
128
129func parseCommandShell(b []byte) ([]byte, []byte, uint16, error) {
130 buf := bytes.NewBuffer(b)
131 path, err := parseAnArg(buf)
132 args, err := parseAnArg(buf)
133 redirect := packet.ReadShort(buf)
134 return path, args, redirect, err
135}
136
137func parseRunAs(b []byte) ([]byte, []byte, []byte, []byte, error) {
138 buf := bytes.NewBuffer(b)

Callers 3

runImplFunction · 0.85
RunFunction · 0.85
runImplFunction · 0.85

Calls 2

ReadShortFunction · 0.92
parseAnArgFunction · 0.85

Tested by

no test coverage detected