summaryrefslogtreecommitdiffstats
path: root/cmd/crawl.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/crawl.go')
-rw-r--r--cmd/crawl.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/crawl.go b/cmd/crawl.go
index 3587eb0..d889e1d 100644
--- a/cmd/crawl.go
+++ b/cmd/crawl.go
@@ -16,15 +16,18 @@ var crawlCmd = &cobra.Command{
func init() {
rootCmd.AddCommand(crawlCmd)
+ crawlCmd.Flags().Bool("subdomains", false, "Also discover and crawl all subdomains using subfinder")
}
func runCrawl(cmd *cobra.Command, args []string) error {
+ subdomains, _ := cmd.Flags().GetBool("subdomains")
+
c, err := newUnauthenticatedClient()
if err != nil {
return err
}
- err = c.CrawlDomain(args[0], func(line string) error {
+ err = c.CrawlDomain(args[0], subdomains, func(line string) error {
fmt.Println(line)
return nil
})