Skip to content

Commit

Permalink
Remove any infomational messages when using -q/--quiet
Browse files Browse the repository at this point in the history
- Fixes #309
  • Loading branch information
Edu4rdSHL committed Oct 15, 2023
1 parent ebef8f9 commit 21cf7b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -85,7 +85,7 @@ pub fn get_subdomains(args: &mut Args) -> Result<()> {
args.subdomains.extend(imported_subdomains);
}

if args.subdomains.is_empty() {
if args.subdomains.is_empty() && !args.quiet_flag {
eprintln!(
"\nNo subdomains were found for the target: {} ¡😭!\n",
&args.target
Expand Down
4 changes: 3 additions & 1 deletion src/networking.rs
Expand Up @@ -178,7 +178,9 @@ pub fn search_subdomains(args: &mut Args) -> HashSet<String> {
].into_iter().map(|j| j.join().unwrap()).collect::<Vec<_>>().into_iter().flatten().flatten().map(|sub| sub.to_lowercase()).collect();
all_subdomains.retain(|sub| logic::validate_subdomain(&base_target, sub, args));

println!();
if !args.quiet_flag {
println!();
}

all_subdomains
}
Expand Down

0 comments on commit 21cf7b0

Please sign in to comment.