pub struct SqlmapTask<'a> { /* private fields */ }Expand description
An RAII-tracked scan execution task.
Ensures that the daemon reclaims task memory on drop by sending a delete request when a Tokio runtime is available (best-effort).
Implementations§
Source§impl<'a> SqlmapTask<'a>
impl<'a> SqlmapTask<'a>
Sourcepub async fn start(&self) -> Result<(), SqlmapError>
pub async fn start(&self) -> Result<(), SqlmapError>
Starts the SQL injection scan on this task.
The URL and options must have been configured via SqlmapEngine::create_task.
Sourcepub async fn wait_for_completion(
&self,
timeout_secs: u64,
) -> Result<(), SqlmapError>
pub async fn wait_for_completion( &self, timeout_secs: u64, ) -> Result<(), SqlmapError>
Polls the task status until completion or timeout.
Uses the engine’s configured poll interval (default: 1 second).
Sourcepub async fn fetch_data(&self) -> Result<DataResponse, SqlmapError>
pub async fn fetch_data(&self) -> Result<DataResponse, SqlmapError>
Fetches the compiled data results from the engine.
Sourcepub async fn fetch_log(&self) -> Result<LogResponse, SqlmapError>
pub async fn fetch_log(&self) -> Result<LogResponse, SqlmapError>
Fetches execution log entries for this task.
Useful for monitoring what sqlmap is doing during a scan.
Sourcepub async fn stop(&self) -> Result<(), SqlmapError>
pub async fn stop(&self) -> Result<(), SqlmapError>
Gracefully stops a running scan.
The task can potentially be restarted after stopping.
Sourcepub async fn kill(&self) -> Result<(), SqlmapError>
pub async fn kill(&self) -> Result<(), SqlmapError>
Forcefully kills a running scan.
The task is terminated immediately. Data collected up to this point
may still be retrievable via fetch_data.
Sourcepub async fn list_options(&self) -> Result<Value, SqlmapError>
pub async fn list_options(&self) -> Result<Value, SqlmapError>
Retrieves the current option values configured for this task.