mirror of https://github.com/qwqdanchun/fscan.git
修改-debug参数,自定义打印当前进度时间,默认100秒没进制就会输出。-debug 0时,有err时就会输出
This commit is contained in:
parent
f4b6ecc363
commit
6fae8bf277
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue