init: basic foundation

This commit is contained in:
Xory 2025-11-12 21:06:45 +02:00
commit df22b0bd5e
10 changed files with 231 additions and 0 deletions

28
src/lib.rs Normal file
View 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,
}