main.go 293 B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. "fmt"
  4. "os"
  5. "os/exec"
  6. )
  7. const (
  8. SYSCALL_NUMS = 400
  9. )
  10. func main() {
  11. for i := 0; i < SYSCALL_NUMS; i++ {
  12. os.Setenv("DISABLE_SYSCALL", fmt.Sprintf("%d", i))
  13. _, err := exec.Command("python3", ".test.py").Output()
  14. if err != nil {
  15. fmt.Printf("%d,", i)
  16. }
  17. }
  18. }