pub struct ActiveScan<T>where
T: Serialize,{
pub checks: Vec<ActiveChecks>,
/* private fields */
}Fields§
§checks: Vec<ActiveChecks>Implementations§
Source§impl<T: OAS + Serialize> ActiveScan<T>
impl<T: OAS + Serialize> ActiveScan<T>
pub async fn run_check( &self, check: ActiveChecks, auth: &Authorization, ) -> ActiveChecks
Source§impl<T: OAS + Serialize> ActiveScan<T>
impl<T: OAS + Serialize> ActiveScan<T>
pub async fn check_min_max( &self, auth: &Authorization, ) -> (Vec<(ResponseData, AttackResponse)>, AttackLog)
pub async fn check_open_redirect( &self, auth: &Authorization, ) -> (Vec<(ResponseData, AttackResponse)>, AttackLog)
pub async fn check_string_length_max( &self, auth: &Authorization, ) -> (Vec<(ResponseData, AttackResponse)>, AttackLog)
pub async fn check_parameter_pollution( &self, auth: &Authorization, ) -> ((Vec<(ResponseData, AttackResponse)>, AttackLog), Vec<String>)
pub async fn check_ssl( &self, auth: &Authorization, ) -> (Vec<(ResponseData, AttackResponse)>, AttackLog)
pub async fn check_authentication( &self, _auth: &Authorization, ) -> (Vec<(ResponseData, AttackResponse)>, AttackLog)
pub async fn check_method_permissions_active( &self, auth: &Authorization, ) -> (Vec<(ResponseData, AttackResponse)>, AttackLog)
Source§impl<T: OAS + Serialize> ActiveScan<T>
impl<T: OAS + Serialize> ActiveScan<T>
pub fn is_2xx( check_ret: (Vec<(ResponseData, AttackResponse)>, AttackLog), ) -> (Vec<Alert>, AttackLog)
pub fn is_3xx( check_ret: (Vec<(ResponseData, AttackResponse)>, AttackLog), ) -> (Vec<Alert>, AttackLog)
pub fn reflected_and_2xx( check_ret_param: ((Vec<(ResponseData, AttackResponse)>, AttackLog), Vec<String>), ) -> (Vec<Alert>, AttackLog)
Source§impl<T: OAS + Serialize + for<'de> Deserialize<'de>> ActiveScan<T>
impl<T: OAS + Serialize + for<'de> Deserialize<'de>> ActiveScan<T>
pub fn new(oas_value: Value) -> Result<Self, &'static str>
pub async fn run(&mut self, tp: ActiveScanType, auth: &Authorization)
pub fn print(&self, verbosity: u8)
pub fn print_to_file_string(&self) -> String
pub fn build_payload(oas_value: &Value, path_item: &PathItem) -> Payload
pub fn unwind_schema( oas_value: &Value, reference: &SchemaRef, map: &mut HashMap<Vec<String>, Schema>, path: &mut Vec<String>, visited_schemes: &mut HashSet<String>, ) -> Value
pub fn gen_default_value(schema: Box<Schema>) -> Value
pub fn get_name_s_ref( s_ref: &SchemaRef, value: &Value, name: &Option<String>, ) -> String
Trait Implementations§
Source§impl<T> Clone for ActiveScan<T>
impl<T> Clone for ActiveScan<T>
Source§fn clone(&self) -> ActiveScan<T>
fn clone(&self) -> ActiveScan<T>
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<T> Debug for ActiveScan<T>
impl<T> Debug for ActiveScan<T>
Source§impl<T> Default for ActiveScan<T>
impl<T> Default for ActiveScan<T>
Source§fn default() -> ActiveScan<T>
fn default() -> ActiveScan<T>
Returns the “default value” for a type. Read more
Source§impl<T> PartialEq for ActiveScan<T>
impl<T> PartialEq for ActiveScan<T>
Source§impl<T> Serialize for ActiveScan<T>
impl<T> Serialize for ActiveScan<T>
impl<T> StructuralPartialEq for ActiveScan<T>where
T: Serialize,
Auto Trait Implementations§
impl<T> Freeze for ActiveScan<T>where
T: Freeze,
impl<T> RefUnwindSafe for ActiveScan<T>where
T: RefUnwindSafe,
impl<T> Send for ActiveScan<T>where
T: Send,
impl<T> Sync for ActiveScan<T>where
T: Sync,
impl<T> Unpin for ActiveScan<T>where
T: Unpin,
impl<T> UnwindSafe for ActiveScan<T>where
T: UnwindSafe,
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