2018-06-06 16:29:33 +00:00
|
|
|
// +build ignore
|
|
|
|
|
2018-06-06 15:21:08 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"git.thisco.de/vbatts/fuzz-walker/walker"
|
2018-06-06 16:29:33 +00:00
|
|
|
"git.thisco.de/vbatts/fuzz-walker/walker/walkers/ioctlFuzz"
|
2018-06-06 15:21:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// NewFuzzer creates the fuzzer for this plugin
|
|
|
|
func NewFuzzer() (walker.Fuzzer, error) {
|
|
|
|
return &myFuzzer{}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type myFuzzer struct{}
|
|
|
|
|
|
|
|
func (mf myFuzzer) Name() string {
|
2018-06-06 16:29:33 +00:00
|
|
|
return ioctlFuzz.Name
|
2018-06-06 15:21:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (mf myFuzzer) Func(path string, info os.FileInfo, timeout time.Duration) error {
|
2018-06-06 16:29:33 +00:00
|
|
|
return ioctlFuzz.Func(path, info)
|
2018-06-06 15:21:08 +00:00
|
|
|
}
|