fix: Resolve 44 compilation errors in ghost-core

This commit is contained in:
pandaadir05
2025-11-17 22:26:53 +02:00
parent b1f098571d
commit 34007d11c1
16 changed files with 566 additions and 310 deletions

View File

@@ -127,11 +127,11 @@ impl DynamicYaraEngine {
bytes_scanned += region.size;
// Simulate finding suspicious patterns
if region.protection.executable && region.protection.writable {
if region.protection.is_executable() && region.protection.is_writable() {
matches.push(RuleMatch {
rule_name: "suspicious_rwx_memory".to_string(),
threat_level: ThreatLevel::High,
offset: region.base_address,
offset: region.base_address as u64,
length: 1024,
metadata: HashMap::new(),
});
@@ -145,7 +145,7 @@ impl DynamicYaraEngine {
Ok(YaraScanResult {
matches,
scan_time_ms,
bytes_scanned,
bytes_scanned: bytes_scanned as u64,
})
}