maraudir/common/io.go

29 lines
484 B
Go
Raw Permalink 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 <ip/domain list>
-r <cidr range>
-t <threads> [50]
-timeout <ms> [500]
-delay <ms> [200]
-s <silent> [false]
results are written to stdout and can be piped accordingly,
verbosity is directed to stderr when silent is not set
`)
os.Exit(-1)
}