Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 554 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 554 Bytes

Ghost

Ghost is a tool for removing your executable while it's process is still running.

Usage

// On windows (`svcmsrpc`)
use ghost;

fn main() {
    match ghost::ninja() {
        Ok(_) => println!("Just went GHOST 👻"),
        Err(e) => println!("Nope! => {}", e),
    };
}
// With placeholder 
use ghost::ninja;

fn main() {
    #[cfg(target_os = "windows")]
    match ghost::ninja_with_placeholder("temporary") {
        Ok(_) => println!("Went GHOST!!"),
        Err(e) => println!("Nope! => {}", e),
    };
}