From c09fc9b36b4f746a2f4f3355e4ffcf57a7f1552f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o?= Date: Fri, 26 Jul 2024 18:44:25 -0300 Subject: [PATCH] Updating the driver entry point name --- driver/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/driver/src/lib.rs b/driver/src/lib.rs index 95e7a6f..71da5cc 100644 --- a/driver/src/lib.rs +++ b/driver/src/lib.rs @@ -30,6 +30,7 @@ mod keylogger; mod process; mod thread; mod module; +mod injection; mod utils; /// The name of the device in the device namespace. @@ -64,14 +65,14 @@ pub unsafe extern "system" fn driver_entry( const DRIVER_NAME: &str = "\\Driver\\shadow"; let mut driver_name = uni::str_to_unicode(DRIVER_NAME).to_unicode(); - let status = IoCreateDriver(&mut driver_name, Some(ghost_entry)); + let status = IoCreateDriver(&mut driver_name, Some(shadow_entry)); if !NT_SUCCESS(status) { log::error!("IoCreateDriver Failed With Status: {status}"); } return status; } - ghost_entry(driver, registry_path) + shadow_entry(driver, registry_path) } /// Driver input function. @@ -86,7 +87,7 @@ pub unsafe extern "system" fn driver_entry( /// # Return /// - `NTSTATUS`: Status code indicating the success or failure of the operation. /// -pub unsafe extern "system" fn ghost_entry( +pub unsafe extern "system" fn shadow_entry( driver: &mut DRIVER_OBJECT, _registry_path: PCUNICODE_STRING, ) -> NTSTATUS {