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

Function encodeTaskID

internal/toolinjection/injection.go:70–72  ·  view source on GitHub ↗

encodeTaskID encodes a task ID as 8 hex characters.

(taskID uint32)

Source from the content-addressed store, hash-verified

68
69// encodeTaskID encodes a task ID as 8 hex characters.
70func encodeTaskID(taskID uint32) string {
71 return fmt.Sprintf("%08x", taskID)
72}
73
74// ShouldInject checks the request's tools array against the configured injection rules
75// and returns the first matching enabled rule, or nil if none match.

Callers 2

GenerateOpenAIToolCallIDFunction · 0.85
GenerateClaudeToolUseIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected