maraudir/common/io.go

31 lines
636 B
Go

package common
import (
"fmt"
"os"
)
func Fatal(msg string) {
fmt.Fprintf(os.Stderr, "fatal: %s\n", msg)
os.Exit(-1)
}
func Usage() {
fmt.Fprintf(os.Stderr, `
maraudir
-l, --list <ip/domain list>
-r, --range <cidr range>
-p, --pathlist <uri path list>
-t, --threads <threads> [100]
--timeout <ms> [1000]
--delay <ms> [200]
-s, --silent [false]
--useragent <useragent> [a googlebot one]
results are written to stdout and can be piped accordingly,
verbosity is directed to stderr when silent is not set
`)
os.Exit(1)
}