From fd020a678a525228e9f69acf20219100f6fd0a4e Mon Sep 17 00:00:00 2001
From: Ian G <49762827+the-wandering-photon@users.noreply.github.com>
Date: Wed, 27 Mar 2024 19:38:06 +0000
Subject: [PATCH] Update documentation
---
src/lib.rs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/lib.rs b/src/lib.rs
index 24ba044..4410671 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -26,8 +26,9 @@ fn DllMain(hmod_instance: HINSTANCE, dw_reason: u32, _: usize) -> i32 {
1
}
-/// Entrypoint to the actual implant once execution goes into DLL_PROCESS_ATTACH. Think of this as
-/// calling a function to start something from main().
+/// Entrypoint to the actual implant to be spawned as a new thread ffom DLL_PROCESS_ATTACH.
+/// This should help to prevent problems whereby a LoaderLock interferes with our implant.
+/// Think of this as calling a function to start something from main().
#[no_mangle]
unsafe extern "system" fn attach(_lp_thread_param: *mut c_void) -> u32 {
MessageBoxA(None, s!("Hello from Rust DLL"), s!("Hello from Rust DLL"), MB_OK);