Adding new features to the 'Module' and refactoring the code

This commit is contained in:
João Victor
2024-09-07 23:33:18 -03:00
parent 3f78e6dced
commit 7330488d31
60 changed files with 2606 additions and 1651 deletions

View File

@@ -1,4 +1,3 @@
extern crate alloc;
use crate::vars::Callbacks;
// Callback Information for Enumeration (Output)

View File

@@ -1,5 +1,3 @@
extern crate alloc;
use core::sync::atomic::AtomicPtr;
use super::LIST_ENTRY;
use ntapi::ntldr::LDR_DATA_TABLE_ENTRY;

View File

@@ -1,4 +1,4 @@
extern crate alloc;
pub struct TargetInjection {
pub pid: usize,

View File

@@ -6,3 +6,11 @@ pub struct ModuleInfo {
pub name: [u16; 256],
pub index: u8,
}
// Enumerate Modules
#[repr(C)]
#[derive(Debug)]
pub struct TargetModule {
pub pid: usize,
pub module_name: alloc::string::String,
}

View File

@@ -1,5 +1,3 @@
extern crate alloc;
// Stores the target registry
#[repr(C)]
#[derive(Debug, Default)]