MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / GenerateCommandID

Function GenerateCommandID

internal/sessions/manager.go:446–450  ·  view source on GitHub ↗

GenerateCommandID returns a unique ID for a pending command.

()

Source from the content-addressed store, hash-verified

444
445// GenerateCommandID returns a unique ID for a pending command.
446func GenerateCommandID() string {
447 b := make([]byte, 8)
448 _, _ = rand.Read(b)
449 return "cmd_" + hex.EncodeToString(b)
450}

Callers 6

enqueueAndAwaitFunction · 0.92
enqueueToolActionFunction · 0.92
HandleMethod · 0.92
PostSessionExecMethod · 0.92
GetSessionObserveMethod · 0.92
GetSessionWSMethod · 0.92

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected