Crates.io | rust_masscan |
lib.rs | rust_masscan |
version | 0.1.7 |
source | src |
created_at | 2021-09-13 12:14:00.708924 |
updated_at | 2021-09-30 13:38:10.86093 |
description | A module for masscan. |
homepage | https://github.com/w01fb0ss/rust_masscan |
repository | https://github.com/w01fb0ss/rust_masscan |
max_upload_size | |
id | 450518 |
size | 18,346 |
Basic usage:
use rust_masscan::Masscan;
let other_args: Vec<String> = vec!["--banners".to_string()];
let mas = Masscan::default()
.set_system_path("/usr/local/bin/masscan".to_string())
.set_ports("22,8080-8100".to_string())
.set_ranges("xx.xx.xx.xx,yy.yy.yy.yy".to_string())
.set_rate("10000".to_string())
.set_other_args(other_args);
let result = mas.run();
println!("{:?}", result);