Skip to content

Commit

Permalink
a few passive mode changes
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Jul 20, 2023
1 parent c909cc9 commit c45caa7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmd/amass/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ func runEnumCommand(clArgs []string) {
r.Fprintf(color.Error, "%v\n", err)
os.Exit(1)
}

if cfg.Passive {
fmt.Fprintf(color.Error, "%s\n", green("Passive mode does not generate output during the enumeration"))
fmt.Fprintf(color.Error, "\t%s\n", green("Obtain your list of FQDNs using the following command:"))
fmt.Fprintf(color.Error, "\t%s\n", green("amass db -names -d "+strings.Join(cfg.Domains(), ",")))
}

// Setup the new enumeration
e := enum.NewEnumeration(cfg, sys, sys.GraphDatabases()[0])
if e == nil {
Expand Down Expand Up @@ -355,7 +362,7 @@ func printOutput(e *enum.Enumeration, args *enumArgs, output chan string, wg *sy
total++
}

if total == 0 {
if !e.Config.Passive && total == 0 {
r.Println("No assets were discovered")
}
}
Expand Down

0 comments on commit c45caa7

Please sign in to comment.