rust-metasploit 1.2.0

Rust wrapper for metasploit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::client::Client;
use crate::error::Error as E;
#[path="../blocking/jobs.rs"] mod jobs;
use serde::de::DeserializeOwned as DOwned;

pub async fn list<T:DOwned>(client:Client) -> Result<T,E> {
    jobs::list(client.clone())
}
pub async fn info<T:DOwned>(client:Client,jobidstr:&str) -> Result<T,E> {
    jobs::info(client.clone(),jobidstr)
}
pub async fn stop<T:DOwned>(client:Client,jobidstr:&str) -> Result<T,E> {
    jobs::stop(client.clone(),jobidstr)
}