mirror of
https://github.com/edu4rdshl/rusolver.git
synced 2026-07-17 23:24:55 +00:00
Improve wildcard handling.
Signed-off-by: Edu4rdSHL <edu4rdshl@protonmail.com>
This commit is contained in:
parent
d1bb538e17
commit
8057fbc9cf
1 changed files with 3 additions and 3 deletions
|
|
@ -148,7 +148,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
|
||||
let hosts: Vec<String> = if matches.is_present("domain") {
|
||||
let domain = value_t!(matches, "domain", String).unwrap();
|
||||
wildcard_ips = detect_wildcards(&domain, &resolvers, quiet_flag).await;
|
||||
wildcard_ips = detect_wildcards(&domain, &trustable_resolver, quiet_flag).await;
|
||||
buffer
|
||||
.lines()
|
||||
.map(|word| format!("{}.{}", word, domain))
|
||||
|
|
@ -253,9 +253,9 @@ async fn detect_wildcards(
|
|||
println!("Running wildcards detection for {}...\n", target)
|
||||
}
|
||||
let mut generated_wilcards: HashSet<String> = HashSet::new();
|
||||
for _ in 1..10 {
|
||||
for _ in 1..20 {
|
||||
generated_wilcards.insert(format!(
|
||||
"{}.{}",
|
||||
"{}.{}.",
|
||||
rng()
|
||||
.sample_iter(Alphanumeric)
|
||||
.take(15)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue