Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
refactor: enable checker by default
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2E committed Jul 13, 2023
1 parent b0a1b52 commit 09488a0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions cmd/sf/sf.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ var Version, Branch, Commit string

func main() {
var (
c = conf.C
output string
slient bool
debug bool
showHelp bool
showVersion bool
c = conf.C
output string
disableCheck bool
slient bool
debug bool
showHelp bool
showVersion bool
)
flag.StringVarP(&c.Target, "domain", "d", "", "Target domain name")
flag.StringVarP(&c.Wordlist, "wordlist", "w", "", "Wordlist file")
Expand All @@ -36,7 +37,7 @@ func main() {
It is recommended to determine if the rate is appropriate by the send/recv statistics in log`)
flag.IntVar(&c.Retry, "retry", 1, "Number of retries")
flag.IntVarP(&c.StatisticsInterval, "stats", "s", 2, "Statistics interval(seconds) in log")
flag.BoolVar(&c.ValidCheck, "check", false, "Check the validity of the subdomains")
flag.BoolVar(&disableCheck, "disable-check", false, "Disable check the validity of the subdomains")
flag.BoolVar(&slient, "slient", false, "Only output valid subdomains, and logs that caused abnormal exit, e.g., fatal and panic")
flag.BoolVar(&debug, "debug", false, "Set the log level to debug, and enable golang pprof with web service")
flag.BoolVarP(&showVersion, "version", "v", false, "Show version")
Expand Down Expand Up @@ -74,6 +75,8 @@ It is recommended to determine if the rate is appropriate by the send/recv stati
go pprof()
}

c.ValidCheck = !disableCheck

if err := c.Verify(); err != nil {
logrus.Fatal(err)
}
Expand Down

0 comments on commit 09488a0

Please sign in to comment.