Add cmdline tools, database, port scanning, and searching

This commit is contained in:
Michael Mikovsky
2025-04-16 21:46:23 -06:00
parent 3dc7b6ff8a
commit 556e6650d0
12 changed files with 1054 additions and 43 deletions
+4
View File
@@ -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)
}