projectdiscovery / subfinder

Fast passive subdomain enumeration tool.
https://projectdiscovery.io
MIT License
9.77k stars 1.23k forks source link

No subdomains found #170

Closed hazcod closed 5 years ago

hazcod commented 5 years ago

What's the problem (or question)?

I am trying to enumerate the subdomains for venclave.com, but no domains are found.

Do you have an idea for a solution?

No idea.

How can we reproduce the issue?

func SubFinder(domain string) (domains []string, err error) {
    s := subf.NewSubfinder()

    s.State = helper.InitState()
    s.State.Recursive = true
    s.State.Bruteforce = false
    s.State.NoPassive = false
    s.State.ComResolver = resolvers
    s.State.Threads = runtime.NumCPU()
    s.State.Domain = domain
    s.State.Wordlist = wordList
    s.State.IsJSON = true
    s.State.AquatoneJSON = false
    s.State.SetConfig = "none"
    s.State.SetSetting = "none"

    s.State.CurrentSettings = *helper.InitializeSettings()

    conf, err := loadConfig(subfinderConfigPath)
    if err != nil {
        return nil, fmt.Errorf("could not load subfinder config: %v", err)
    }

    s.State.ConfigState = *conf

    s.Init()

    return s.PassiveEnumeration(), nil
}
    s, err := enumeration.SubFinder("venclave.com")
    log.Printf("%v %v", s, err)

Running enumeration on venclave.com

Total 0 Unique subdomains found for venclave.com

2019/07/12 14:28:56 [] <nil>

My config:

{
  "virustotalApikey": "xxx",
  "passivetotalUsername": "",
  "passivetotalKey": "",
  "securitytrailsKey": "",
  "riddlerEmail": "",
  "riddlerPassword": "",
  "censysUsername": "",
  "censysSecret": "",
  "shodanApiKey": "xxx"
}

What are the running context details?

hazcod commented 5 years ago

I didn't set s.State.Sources = "all"