pub struct ScanConfig {
pub scan_mode: ScanMode,
pub enable_crawler: bool,
pub max_depth: u32,
pub max_pages: u32,
pub enum_subdomains: bool,
pub auth_cookie: Option<String>,
pub auth_token: Option<String>,
pub auth_basic: Option<String>,
pub custom_headers: Option<HashMap<String, String>>,
pub only_modules: Vec<String>,
pub skip_modules: Vec<String>,
}Fields§
§scan_mode: ScanMode§enable_crawler: bool§max_depth: u32§max_pages: u32§enum_subdomains: bool§auth_token: Option<String>§auth_basic: Option<String>§custom_headers: Option<HashMap<String, String>>§only_modules: Vec<String>Only run these specific scanner modules (empty = run all)
skip_modules: Vec<String>Skip these specific scanner modules
Implementations§
Source§impl ScanConfig
impl ScanConfig
Sourcepub fn should_run_module(&self, module_id: &str) -> bool
pub fn should_run_module(&self, module_id: &str) -> bool
Check if a module should run based on –only and –skip filters. Returns true if the module is allowed to run.
Sourcepub fn should_run_any_module(&self, module_ids: &[&str]) -> bool
pub fn should_run_any_module(&self, module_ids: &[&str]) -> bool
Check if ANY module from a list should run (for phase-level gating).
Source§impl ScanConfig
impl ScanConfig
Sourcepub fn payload_count(&self) -> usize
pub fn payload_count(&self) -> usize
Get the global payload count limit for legacy modes. For Intelligent mode, this returns 0 as payload intensity is determined per-parameter.
Sourcepub fn enable_cloud_scanning(&self) -> bool
pub fn enable_cloud_scanning(&self) -> bool
Determine if cloud/container security scanning should run Enabled for Thorough, Insane, and Intelligent modes
Sourcepub fn subdomain_extended(&self) -> bool
pub fn subdomain_extended(&self) -> bool
Determine if extended subdomain enumeration should be used Enabled for Thorough, Insane, and Intelligent modes
Trait Implementations§
Source§impl Clone for ScanConfig
impl Clone for ScanConfig
Source§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScanConfig
impl Debug for ScanConfig
Source§impl Default for ScanConfig
impl Default for ScanConfig
Source§impl<'de> Deserialize<'de> for ScanConfig
impl<'de> Deserialize<'de> for ScanConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScanConfig
impl RefUnwindSafe for ScanConfig
impl Send for ScanConfig
impl Sync for ScanConfig
impl Unpin for ScanConfig
impl UnsafeUnpin for ScanConfig
impl UnwindSafe for ScanConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more