1 unstable release
0.1.1 | Apr 6, 2023 |
---|---|
0.1.0 |
|
#8 in #ghost
37 downloads per month
13KB
276 lines
Ghost
Ghost
is a rust library that allows you to delete your executable while it's running.
Usage
// With a default placeholder value on windows (`svcmsrpc`)
use ghost;
fn main() {
match ghost::ninja() {
Ok(_) => println!("Just went GHOST 👻"),
Err(e) => println!("Nope! => {}", e),
};
}
// With a placeholder you provide
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
Windows implementation heavily refrences [@bytebl33der] NIM implementation in OffensiveNim
Dependencies
~0–41MB
~561K SLoC