rsubdomain 1.2.11

A high-performance subdomain brute-force tool written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use rand::distributions::Alphanumeric;
use rand::{thread_rng, Rng};
use std::iter::repeat_with;

#[allow(dead_code)]
fn random_str(n: usize) -> String {
    let mut rng = thread_rng();
    // 生成一个长度为 n 的随机字符串
    repeat_with(|| rng.sample(Alphanumeric) as char)
        .take(n)
        .collect()
}