nyx/tests/dynamic_fixtures/go/cmdi_unsupported.go
2026-06-05 10:16:30 -05:00

15 lines
356 B
Go

// Command injection — unsupported fixture.
// Entry is a method on a struct.
// Test sets confidence = Low to get Unsupported(ConfidenceTooLow).
// Entry: Runner.Execute Cap: CODE_EXEC
// Expected verdict: Unsupported
package entry
import "os/exec"
type Runner struct{}
func (r *Runner) Execute(cmd string) {
exec.Command("sh", "-c", cmd).Run()
}