Struct feroxbuster::scan_manager::FeroxScans[][src]

pub struct FeroxScans {
    pub scans: RwLock<Vec<Arc<FeroxScan>>>,
    // some fields omitted
}

Container around a locked hashset of FeroxScans, adds wrappers for insertion and searching

Fields

scans: RwLock<Vec<Arc<FeroxScan>>>

Internal structure: locked hashset of FeroxScans

Implementations

impl FeroxScans[src]

Implementation of FeroxScans

pub fn new(output_level: OutputLevel) -> Self[src]

given an OutputLevel, create a new FeroxScans object

pub fn insert(&self, scan: Arc<FeroxScan>) -> bool[src]

Add a FeroxScan to the internal container

If the internal container did NOT contain the scan, true is returned; else false

pub fn add_serialized_scans(&self, filename: &str) -> Result<()>[src]

load serialized FeroxScan(s) into this FeroxScans

pub fn contains(&self, url: &str) -> bool[src]

Simple check for whether or not a FeroxScan is contained within the inner container based on the given URL

pub fn get_scan_by_url(&self, url: &str) -> Option<Arc<FeroxScan>>[src]

Find and return a FeroxScan based on the given URL

pub fn increment_status_code(&self, url: &str, code: StatusCode)[src]

add one to either 403 or 429 tracker in the scan related to the given url

pub fn increment_error(&self, url: &str)[src]

add one to either 403 or 429 tracker in the scan related to the given url

pub async fn display_scans(&self)[src]

Print all FeroxScans of type Directory

Example: 0: complete https://10.129.45.20 9: complete https://10.129.45.20/images 10: complete https://10.129.45.20/assets

pub fn print_known_responses(&self)[src]

prints all known responses that the scanner has already seen

pub fn print_completed_bars(&self, bar_length: usize) -> Result<()>[src]

if a resumed scan is already complete, display a completed progress bar to the user

pub async fn pause(&self, get_user_input: bool) -> usize[src]

Forced the calling thread into a busy loop

Every SLEEP_DURATION milliseconds, the function examines the result stored in PAUSE_SCAN

When the value stored in PAUSE_SCAN becomes false, the function returns, exiting the busy loop

pub fn set_bar_length(&self, bar_length: u64)[src]

set the bar length of FeroxScans

pub fn add_directory_scan(
    &self,
    url: &str,
    scan_order: ScanOrder
) -> (bool, Arc<FeroxScan>)
[src]

Given a url, create a new FeroxScan and add it to FeroxScans as a Directory Scan

If FeroxScans did not already contain the scan, return true; otherwise return false

Also return a reference to the new FeroxScan

pub fn add_file_scan(
    &self,
    url: &str,
    scan_order: ScanOrder
) -> (bool, Arc<FeroxScan>)
[src]

Given a url, create a new FeroxScan and add it to FeroxScans as a File Scan

If FeroxScans did not already contain the scan, return true; otherwise return false

Also return a reference to the new FeroxScan

pub fn has_active_scans(&self) -> bool[src]

small helper to determine whether any scans are active or not

pub fn get_active_scans(&self) -> Vec<Arc<FeroxScan>>[src]

Retrieve all active scans

Trait Implementations

impl Debug for FeroxScans[src]

impl Default for FeroxScans[src]

impl Serialize for FeroxScans[src]

Serialize implementation for FeroxScans

purposefully skips menu attribute

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
    S: Serializer
[src]

Function that handles serialization of FeroxScans

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]