diff --git a/common/Parse.go b/common/Parse.go index cb9eb71..031dd18 100644 --- a/common/Parse.go +++ b/common/Parse.go @@ -107,12 +107,6 @@ func ParseInput(Info *HostInfo) { os.Exit(0) } - if LogErr { - WaitTime = 10 - } else { - WaitTime = 100 - } - if TmpOutputfile != "" { if !strings.Contains(Outputfile, "/") && !strings.Contains(Outputfile, `\`) { Outputfile = getpath() + TmpOutputfile diff --git a/common/flag.go b/common/flag.go index 67556fe..9f41011 100644 --- a/common/flag.go +++ b/common/flag.go @@ -38,7 +38,7 @@ func Flag(Info *HostInfo) { flag.BoolVar(&Ping, "ping", false, "using ping replace icmp") flag.StringVar(&TmpOutputfile, "o", "result.txt", "Outputfile") flag.BoolVar(&TmpSave, "no", false, "not to save output log") - flag.BoolVar(&LogErr, "debug", false, "debug mode will print more error info") + flag.Int64Var(&LogErrTime, "debug", 120, "every time to LogErr") flag.StringVar(&URL, "u", "", "url") flag.StringVar(&UrlFile, "uf", "", "urlfile") flag.StringVar(&Pocinfo.PocName, "pocname", "", "use the pocs these contain pocname, -pocname weblogic") diff --git a/common/log.go b/common/log.go index 3046b66..b7b6514 100644 --- a/common/log.go +++ b/common/log.go @@ -12,7 +12,6 @@ var End int64 var Results = make(chan string) var Start = true var LogSucTime int64 -var LogErr bool var LogErrTime int64 var WaitTime int64