33 lines
983 B
Rust
33 lines
983 B
Rust
use std::process::Command;
|
|
use std::thread::JoinHandle;
|
|
use std::thread::Thread;
|
|
|
|
use crate::get_user_input;
|
|
use crate::Project;
|
|
use crate::open_append;
|
|
|
|
pub fn run_dns_enumeration(project: &Project) -> Option<JoinHandle<()>>{
|
|
let notes_folder = project.notes_folder.clone();
|
|
let mut enumeration = notes_folder.clone();
|
|
enumeration.push("enumeration.md");
|
|
let mut enumeration_file = open_append(&enumeration);
|
|
if enumeration_file.is_none(){
|
|
println!("error opening enumeration_file!");
|
|
println!("try creating it manually.");
|
|
return None;
|
|
}
|
|
let mut domaind = Vec::new();
|
|
loop{
|
|
let domain = get_user_input("domain to add? enter DONE in all caps when you're finsihed");
|
|
match domain.as_str(){
|
|
"DONE" => break,
|
|
_ => domaind.push(domain),
|
|
}
|
|
}
|
|
/*let dns_handle = Thread::spawn(move || {
|
|
for domain in domaind{
|
|
let outp
|
|
}
|
|
});*/
|
|
return None;
|
|
} |