pub struct Planner;Expand description
Plan discovery: turns a run into a list of module steps that could be executed against its hosts. Works entirely offline against the database and the local module catalogs; live framework verification happens later.
Implementations§
Source§impl Planner
impl Planner
Sourcepub fn resolve_run(storage: &mut dyn Storage, run_ref: &str) -> Result<ScanRun>
pub fn resolve_run(storage: &mut dyn Storage, run_ref: &str) -> Result<ScanRun>
Resolve a run id that may be a full stable_id or a unique prefix.
Sourcepub fn collect_assets(
storage: &mut dyn Storage,
run: &ScanRun,
) -> Result<Vec<Asset>>
pub fn collect_assets( storage: &mut dyn Storage, run: &ScanRun, ) -> Result<Vec<Asset>>
Collect the assets that belong to a run. A run’s primary target usually matches the asset name; additionally any asset referenced by an observation recorded under this run id is included.
Sourcepub fn collect_targets(
storage: &mut dyn Storage,
run: &ScanRun,
) -> Result<Vec<ExploitTarget>>
pub fn collect_targets( storage: &mut dyn Storage, run: &ScanRun, ) -> Result<Vec<ExploitTarget>>
Gather every (asset, finding, service, cve) tuple for a run.
Auto Trait Implementations§
impl Freeze for Planner
impl RefUnwindSafe for Planner
impl Send for Planner
impl Sync for Planner
impl Unpin for Planner
impl UnsafeUnpin for Planner
impl UnwindSafe for Planner
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more