pub struct ExploitDevelopment {
pub complexity: Score,
pub techniques: Vec<Technique>,
pub harness: Score,
}Expand description
How hard it is to weaponise the bug, given that it is already found.
Fields§
§complexity: ScoreDifficulty of the core exploit logic.
techniques: Vec<Technique>Techniques the exploit must employ. Only the length feeds the arithmetic.
harness: ScoreDifficulty of the delivery harness — protocol, encoding, transport.
Implementations§
Source§impl ExploitDevelopment
impl ExploitDevelopment
Sourcepub fn new(
complexity: Score,
techniques: impl Into<Vec<Technique>>,
harness: Score,
) -> Self
pub fn new( complexity: Score, techniques: impl Into<Vec<Technique>>, harness: Score, ) -> Self
Builds from an enumerated technique list.
Sourcepub fn with_technique_count(
complexity: Score,
count: usize,
harness: Score,
) -> Self
pub fn with_technique_count( complexity: Score, count: usize, harness: Score, ) -> Self
Builds when only the number of techniques is known, filling with
Technique::Unspecified.
Sourcepub fn exploit_complexity(&self) -> Score
pub fn exploit_complexity(&self) -> Score
min(10, complexity + technique_count).
The prose specification clamps this to [1, 10], but the reference calculator applies
no lower bound, and its own published example pyny scores zero here. This follows the
calculator.
Trait Implementations§
Source§impl Clone for ExploitDevelopment
impl Clone for ExploitDevelopment
Source§impl Debug for ExploitDevelopment
impl Debug for ExploitDevelopment
impl Eq for ExploitDevelopment
Source§impl PartialEq for ExploitDevelopment
impl PartialEq for ExploitDevelopment
impl StructuralPartialEq for ExploitDevelopment
Auto Trait Implementations§
impl Freeze for ExploitDevelopment
impl RefUnwindSafe for ExploitDevelopment
impl Send for ExploitDevelopment
impl Sync for ExploitDevelopment
impl Unpin for ExploitDevelopment
impl UnsafeUnpin for ExploitDevelopment
impl UnwindSafe for ExploitDevelopment
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