panic_attacker/attack/
mod.rs1pub mod executor;
6pub mod strategies;
7
8use crate::types::*;
9use anyhow::Result;
10
11pub use executor::AttackExecutor;
12
13pub fn execute_attack(config: AttackConfig) -> Result<Vec<AttackResult>> {
15 let executor = AttackExecutor::new(config);
16 executor.execute()
17}
18
19pub fn execute_attack_with_patterns(
21 config: AttackConfig,
22 language: Language,
23 frameworks: &[Framework],
24) -> Result<Vec<AttackResult>> {
25 let executor = AttackExecutor::with_patterns(config, language, frameworks);
26 executor.execute()
27}