mirror of
https://github.com/Astatin3/rust-scan-mc.git
synced 2026-06-09 00:18:02 -06:00
Add cmdline tools, database, port scanning, and searching
This commit is contained in:
@@ -3,6 +3,8 @@ use std::{
|
||||
str::FromStr,
|
||||
};
|
||||
|
||||
use rand::{rng, seq::SliceRandom};
|
||||
|
||||
// static MAX_HOSTS: u32 = 1024;
|
||||
|
||||
/// Parse a comma-separated list of IP targets
|
||||
@@ -30,6 +32,8 @@ pub fn parse_ip_targets(targets: &str) -> Result<Vec<IpAddr>, Box<dyn std::error
|
||||
}
|
||||
}
|
||||
|
||||
ips.shuffle(&mut rng());
|
||||
|
||||
Ok(ips)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user