use crate::error::Error;
use std::process::{Command, Stdio};
pub fn run_decrypt_process(handshake: &str, wordlist: &str) -> Result<(), Error> {
let cmd = format!("aircrack-ng '{}' -w '{}' ; exec sh", handshake, wordlist);
Command::new("gnome-terminal")
.stdin(Stdio::piped())
.args([
"--hide-menubar",
"--title",
"Handshake Decryption",
"--",
"sh",
"-c",
&cmd,
])
.output()?;
Ok(())
}