maraudir/common/io.go

31 lines
636 B
Go
Raw Normal View History

2024-11-21 06:16:20 +00:00
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]
2024-11-21 06:16:20 +00:00
results are written to stdout and can be piped accordingly,
verbosity is directed to stderr when silent is not set
`)
2024-11-30 22:11:38 +00:00
os.Exit(1)
2024-11-21 06:16:20 +00:00
}