29 lines
484 B
Go
29 lines
484 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 <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)
|
||
|
}
|