pub struct Scanner { /* private fields */ }Expand description
WordPress scanner
Implementations§
Source§impl Scanner
impl Scanner
Sourcepub fn new(url: &str) -> Result<Self>
pub fn new(url: &str) -> Result<Self>
Create a new scanner for the given URL or domain
Uses default settings with SSRF protection enabled.
For more options, use Scanner::builder().
Sourcepub fn builder(url: &str) -> ScannerBuilder
pub fn builder(url: &str) -> ScannerBuilder
Create a builder for configuring scanner options
§Example
use wordpress_audit::Scanner;
let scanner = Scanner::builder("localhost:8080")
.allow_private(true)
.build()?;Sourcepub async fn scan(&self) -> Result<ScanResult>
pub async fn scan(&self) -> Result<ScanResult>
Scan the WordPress site
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scanner
impl !RefUnwindSafe for Scanner
impl Send for Scanner
impl Sync for Scanner
impl Unpin for Scanner
impl !UnwindSafe for Scanner
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