Skip to content

Commit

Permalink
print all print found
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaylor89 committed Aug 18, 2024
1 parent a74af01 commit d65adf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ async fn main() -> Result<()> {
filtered_targets.clone(),
cli.timeout,
cli.proxy.as_ref(),
cli.print_all,
cli.print_found,
)
.await?;
save_results(
Expand Down
6 changes: 5 additions & 1 deletion src/sherlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ pub async fn check_username(
site_data: HashMap<String, TargetInfo>,
timeout: u64,
proxy: Option<&String>,
print_all: bool,
print_found: bool,
) -> color_eyre::Result<Vec<QueryResult>> {
let num_of_sites = site_data.keys().len();
if num_of_sites == 0 {
Expand Down Expand Up @@ -157,7 +159,9 @@ pub async fn check_username(
}
};

print_result(&query_result);
if print_all || (print_found && query_result.status == QueryStatus::Claimed) {
print_result(&query_result);
}
results.push(query_result);
}

Expand Down

0 comments on commit d65adf2

Please sign in to comment.