Skip to content

Commit

Permalink
Linux things
Browse files Browse the repository at this point in the history
  • Loading branch information
MEhrn00 committed Mar 2, 2024
1 parent 89b5bf5 commit 5db7b66
Show file tree
Hide file tree
Showing 20 changed files with 355 additions and 75 deletions.
157 changes: 124 additions & 33 deletions Payload_Type/thanatos/agent/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions Payload_Type/thanatos/agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
"cryptolib",
"errors",
"genconfig",
"profiles/http", "profiles/base",
]

default-members = ["thanatos"]
Expand All @@ -27,7 +28,7 @@ version = "0.2.0"

##### WORKSPACE DEPENDENCIES #####
[workspace.dependencies]
base64 = "0.21.5"
base64 = "0.22.0"
cfg-if = "1"
chrono = "0.4.34"
hex-literal = "0.4.1"
Expand All @@ -41,12 +42,17 @@ bitflags = "2.4.2"
[workspace.dependencies.libc]
version = "0.2"

[workspace.dependencies.rand]
version = "0.8.5"
default-features = false
features = ["std_rng", "small_rng", "getrandom"]

[workspace.dependencies.serde]
version = "1"
features = ["derive"]

[workspace.dependencies.windows]
version = "0.52.0"
version = "0.54.0"
features = [
"Win32_Foundation",
"Win32_System",
Expand Down
2 changes: 2 additions & 0 deletions Payload_Type/thanatos/agent/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ cfg_if::cfg_if! {

pub struct ConfigVars(config_pb::Config);

pub use config_pb::HttpConfig;

impl ConfigVars {
pub fn parse() -> Result<ConfigVars, ThanatosError> {
Ok(ConfigVars(config_pb::Config::decode(CONFIG).map_err(|_| ThanatosError::ConfigParseError)?))
Expand Down
1 change: 1 addition & 0 deletions Payload_Type/thanatos/agent/errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub enum ThanatosError {
IoError(std::io::Error),

ConfigParseError,
OutOfProfiles,
}

impl ThanatosError {
Expand Down
14 changes: 14 additions & 0 deletions Payload_Type/thanatos/agent/profiles/base/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "base-profile"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
version.workspace = true


[dependencies]
prost.workspace = true

[build-dependencies]
prost-build.workspace = true
Loading

0 comments on commit 5db7b66

Please sign in to comment.