Skip to content

Instantly share code, notes, and snippets.

@picatz
Last active August 29, 2018 22:35
Show Gist options
  • Save picatz/82d286bcf5e0cb0956feecb6b1ca6898 to your computer and use it in GitHub Desktop.
Save picatz/82d286bcf5e0cb0956feecb6b1ca6898 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"github.com/subfinder/research/core"
"github.com/subfinder/research/core/sources"
)
func main() {
var sourcesList = []core.Source{
&sources.CertSpotter{},
&sources.HackerTarget{},
&sources.WaybackArchive{},
&sources.Bing{},
&sources.Baidu{},
&sources.ThreatCrowd{},
// many more...
}
options := &core.EnumerationOptions{Sources: sourcesList}
for result := range core.EnumerateSubdomains("google.com", options) {
// print each result to the screen
fmt.Println(result)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment