-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.rs
More file actions
32 lines (26 loc) · 992 Bytes
/
Copy pathmod.rs
File metadata and controls
32 lines (26 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// SPDX-License-Identifier: MPL-2.0
// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
//! Attack orchestration module
pub mod executor;
pub mod profile;
pub mod strategies;
use crate::types::*;
use anyhow::Result;
pub use executor::AttackExecutor;
pub use profile::AttackProfile;
/// Execute an attack against a target program
pub fn execute_attack(config: AttackConfig) -> Result<Vec<AttackResult>> {
// Thin wrapper keeps CLI and library callers on the same execution surface.
let executor = AttackExecutor::new(config);
executor.execute()
}
/// Execute an attack with pattern-aware strategy selection
pub fn execute_attack_with_patterns(
config: AttackConfig,
language: Language,
frameworks: &[Framework],
) -> Result<Vec<AttackResult>> {
// Pattern-aware mode enriches axis execution with language/framework heuristics.
let executor = AttackExecutor::with_patterns(config, language, frameworks);
executor.execute()
}