mirror of
https://github.com/joaoviictorti/shadow-rs.git
synced 2026-01-20 16:04:22 +01:00
Adding new features to the 'Module' and refactoring the code
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
extern crate alloc;
|
||||
use crate::vars::Callbacks;
|
||||
|
||||
// Callback Information for Enumeration (Output)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
extern crate alloc;
|
||||
|
||||
use core::sync::atomic::AtomicPtr;
|
||||
use super::LIST_ENTRY;
|
||||
use ntapi::ntldr::LDR_DATA_TABLE_ENTRY;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
extern crate alloc;
|
||||
|
||||
|
||||
pub struct TargetInjection {
|
||||
pub pid: usize,
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
extern crate alloc;
|
||||
|
||||
// Stores the target registry
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Default)]
|
||||
|
||||
Reference in New Issue
Block a user