Update subfinder.go

master
Nizamul Rana 2018-07-10 16:40:44 +05:30 committed by GitHub
parent 10fffd31d5
commit db37fe875c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions

View File

@ -134,18 +134,19 @@ func (s *Subfinder) parseListResolver() {
}
func (s *Subfinder) parseBruteForce() {
if s.State.Bruteforce == true && s.State.Wordlist == "" {
if !s.State.Silent {
if s.State.Bruteforce == true {
if s.State.Wordlist == "" {
if !s.State.Silent {
fmt.Printf("%s-> Must provide a wordlist when bruteforce is enabled.%s\nTry %s'./subfinder -h'%s for more information\n", helper.Bad, helper.Reset, helper.Info, helper.Reset)
}
os.Exit(1)
}
os.Exit(1)
}
if !helper.Exists(s.State.Wordlist) {
if !s.State.Silent {
if !helper.Exists(s.State.Wordlist) {
if !s.State.Silent {
fmt.Printf("%s-> The wordlist file '%s' does not exist.%s\n", helper.Bad, s.State.Wordlist, helper.Reset)
}
os.Exit(1)
}
os.Exit(1)
}
}