mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
15 lines
356 B
Go
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()
|
|
}
|