2 unstable releases

0.2.0 Jun 30, 2024
0.1.1 Apr 6, 2023
0.1.0 Apr 6, 2023

#634 in Unix APIs

Download history 6/week @ 2024-09-10 2/week @ 2024-09-17 2/week @ 2024-09-24

127 downloads per month

MIT license

14KB
284 lines

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),
    };
}

lib.rs:

Ghost is a library that can delete exe files on the fly Credits to @yamakadi(YK) https://github.com/yamakadi who I was heavily inspired by to publish this This implementation heavily refrences [@bytebl33der] NIM implementation in OffensiveNim

Dependencies

~0–38MB
~525K SLoC