8 releases

0.1.7 Sep 30, 2021
0.1.6 Sep 27, 2021

#3 in #masscan

Apache-2.0

7KB
133 lines

A module for masscan

Examples

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);

lib.rs:

A module for masscan.

Dependencies

~0.7–1.7MB
~36K SLoC