subrut

Crates.iosubrut
lib.rssubrut
version0.1.1
sourcesrc
created_at2022-08-22 20:41:46.420838
updated_at2022-08-22 20:52:14.911306
descriptionThe super fast tool for brute forcing subdomains.
homepage
repositoryhttps://github.com/arg2u/subrut
max_upload_size
id650592
size6,907,567
Airat Galiullin (arg2u)

documentation

https://docs.rs/subrut

README

Latest Version | Documentation

Subrut is the super fast tool for brute forcing subdomains. From arg2u with ♥

Requirments

To use Subrut you need to install Cargo and Rust. Just paste into your terminal window:

curl https://sh.rustup.rs -sSf | sh
cargo install subrut

Usage

subrut [OPTIONS] -d <domain>

Flags

-h, --help       Prints help information
-V, --version    Prints version information

Options

-d <domain>           Domain to scan
-f <file>             Output filepath. If not provided will print results to console [default: ""]
-o <output>           Output format (txt ,json, csv) [default: txt]
-r <resolver>         Resolver (google, quad9, cloudflare) [default: google]
-w <wordslist>        Wordslist file [default: wordslist.txt]

In-Code Example

use subrut::models::error::Error;
#[tokio:main]
async fn main() ->  Result<(), Error> {
    let scan = subrut::run("admin\nips\n".to_string(),"google.com".to_string(), "google".to_string(), None)?;
    println!("JSON = {}", &scan.to_json()?);
    println!("CSV = {}", &scan.to_csv());
    println!("Pure string = {}", &scan.to_string());
    Ok(())
}

Library Dependecies

trust-dns-resolver = "0.21.2"
tokio = { version = "1", features = ["full"] }
serde = {version = "1.0.143", features = ["derive"]}
serde_json = "1.0"

Donation

BTC: 1BXuTySFfiamKSa2GeC7vjDPBE4uxtz3a6

License

MIT

Commit count: 7

cargo fmt