debugging and fixing cicd

This commit is contained in:
pandaadir05
2025-11-21 01:32:33 +02:00
parent d5e39529fa
commit 407bba8ae5
5 changed files with 73 additions and 44 deletions

View File

@@ -7,7 +7,6 @@
///! - Function address resolution
use crate::{GhostError, Result};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
/// PE data directory indices
pub const IMAGE_DIRECTORY_ENTRY_EXPORT: usize = 0;
@@ -435,9 +434,7 @@ pub fn parse_iat_from_memory(
_base_address: usize,
_memory_reader: impl Fn(u32, usize, usize) -> Result<Vec<u8>>,
) -> Result<Vec<ImportEntry>> {
Err(GhostError::NotImplemented(
"IAT parsing not implemented for this platform".to_string(),
))
Err(GhostError::PlatformNotSupported { feature: "IAT parsing not implemented for this platform".to_string() })
}
#[cfg(not(windows))]
@@ -447,7 +444,5 @@ pub fn detect_iat_hooks(
_disk_path: &str,
_memory_reader: impl Fn(u32, usize, usize) -> Result<Vec<u8>>,
) -> Result<IATHookResult> {
Err(GhostError::NotImplemented(
"IAT hook detection not implemented for this platform".to_string(),
))
Err(GhostError::PlatformNotSupported { feature: "IAT hook detection not implemented for this platform".to_string() })
}