diff --git a/src/main.rs b/src/main.rs index 7c386b9..4174438 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,18 @@ use owo_colors::OwoColorize; use std::process::Command; +use std::fs; fn main() -> std::io::Result<()> { - let ports = [80, 443, 8448]; - for port in ports { + let file: Vec = fs::read_to_string("sage.txt") + .unwrap() + .lines() + .map(String::from) + .collect(); + + for port in &file[1..file.len()] { let netcat = Command::new("nc") .arg("-vz") - .arg("devraza.giize.com") + .arg(format!("{}", file[0])) .arg(format!("{}", port)) .output()?;