Skip to content

Commit

Permalink
Release commit for 'v0.1.7'
Browse files Browse the repository at this point in the history
commit 094b90b
Author: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Fri Feb 2 20:36:10 2024 +0000

    Bump version number to match release '0.1.7'

commit 8a904fa
Author: Matt Ehrnschwender <[email protected]>
Date:   Fri Feb 2 15:30:20 2024 -0500

    Clippy lint

commit 0e8b5ed
Author: Matt Ehrnschwender <[email protected]>
Date:   Fri Feb 2 15:15:54 2024 -0500

    Update changelog

commit 60b34aa
Author: Matt Ehrnschwender <[email protected]>
Date:   Fri Feb 2 15:11:40 2024 -0500

    Modify CI to include HTTP configuration

commit 7a29fe4
Author: Matt Ehrnschwender <[email protected]>
Date:   Fri Feb 2 15:11:00 2024 -0500

    Fix error due to profiles not being mut

commit 93e5bb3
Author: Matt Ehrnschwender <[email protected]>
Date:   Fri Feb 2 15:09:52 2024 -0500

    Fix typo in sshspawn command parameter description

commit e3dbd69
Author: Matt Ehrnschwender <[email protected]>
Date:   Fri Feb 2 15:08:18 2024 -0500

    fix(#19): Add Thanatos artifacts into base image

    The new Mythic changes no longer run payload type containers with a bind
    mount to the code runtime directory. This will copy in the Thanatos
    artifacts needed without relying on the old bind mount.
  • Loading branch information
MEhrn00 committed Feb 2, 2024
1 parent 39cbf38 commit a3cc2d7
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 12 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,18 @@ jobs:
working-directory: ${{ env.THANATOS_PATH }}/${{ env.AGENT_CODE }}
run: cargo check --color always --all-targets --all-features
env:
RUSTFLAGS: "--cfg http"
UUID: ""
AESPSK: ""
callback_host: ""
callback_interval: ""
callback_jitter: ""
encrypted_exchange_check: ""
callback_port: ""
connection_retries: ""
encrypted_exchange_check: ""
get_uri: ""
headers: ""
post_uri: ""
working_hours: ""

format:
Expand All @@ -74,11 +81,18 @@ jobs:
working-directory: ${{ env.THANATOS_PATH }}/${{ env.AGENT_CODE }}
run: cargo fmt -- --color always --check
env:
RUSTFLAGS: "--cfg http"
UUID: ""
AESPSK: ""
callback_host: ""
callback_interval: ""
callback_jitter: ""
encrypted_exchange_check: ""
callback_port: ""
connection_retries: ""
encrypted_exchange_check: ""
get_uri: ""
headers: ""
post_uri: ""
working_hours: ""

lint:
Expand Down Expand Up @@ -106,9 +120,16 @@ jobs:
working-directory: ${{ env.THANATOS_PATH }}/${{ env.AGENT_CODE }}
run: cargo clippy --color always --all-features --all-targets -- -D warnings
env:
RUSTFLAGS: "--cfg http"
UUID: ""
AESPSK: ""
callback_host: ""
callback_interval: ""
callback_jitter: ""
encrypted_exchange_check: ""
callback_port: ""
connection_retries: ""
encrypted_exchange_check: ""
get_uri: ""
headers: ""
post_uri: ""
working_hours: ""
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ Changes to the Thanatos project.

This changelog file adheres to [keepachangelog](https://keepachangelog.com/en/1.1.0/).

## [0.1.6] - 2023-01-31
## [0.1.7] - 2024-02-02

### Changed

- Modify lint workflow to include HTTP configuration 60b34aa

### Fixed

- Fix build error due to profiles not being mut 7a29fe4
- Fix typo in sshspawn command parameter description 93e5bb3
- fix(#19): Add Thanatos artifacts into base image e3dbd69

## [0.1.6] - 2024-01-31

### Added

Expand Down Expand Up @@ -81,6 +93,7 @@ This changelog file adheres to [keepachangelog](https://keepachangelog.com/en/1.
Initial public release


[0.1.7]: https://github.com/MythicAgents/thanatos/compare/v0.1.6...v0.1.7
[0.1.6]: https://github.com/MythicAgents/thanatos/compare/v0.1.5...v0.1.6
[0.1.5]: https://github.com/MythicAgents/thanatos/compare/v0.1.4...v0.1.5
[0.1.4]: https://github.com/MythicAgents/thanatos/compare/v0.1.3...v0.1.4
Expand Down
3 changes: 3 additions & 0 deletions Payload_Type/thanatos/.docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,8 @@ RUN rm -f sccache.tar.gz
COPY .docker/config.toml /root/.cargo/config.toml

WORKDIR /Mythic/

COPY main.py main.py
COPY thanatos thanatos
ENV SCCACHE_DIR /Mythic/.cache/sccache
CMD ["python3.11", "main.py"]
2 changes: 1 addition & 1 deletion Payload_Type/thanatos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Pull in the thanatos docker image
FROM ghcr.io/mythicagents/thanatos:v0.1.6
FROM ghcr.io/mythicagents/thanatos:v0.1.7
8 changes: 7 additions & 1 deletion Payload_Type/thanatos/thanatos/agent_code/.env.default
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
UUID=""
AESPSK=""
callback_host=""
callback_interval=""
callback_jitter=""
encrypted_exchange_check=""
callback_port=""
connection_retries=""
encrypted_exchange_check=""
get_uri=""
headers=""
post_uri=""
working_hours=""
2 changes: 1 addition & 1 deletion Payload_Type/thanatos/thanatos/agent_code/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thanatos"
version = "0.1.6"
version = "0.1.7"
authors = ["Matt Ehrnschwender", "Max Harley"]
edition = "2021"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub mod profilevars {
headers
.get("User-Agent")
.map(|agent| agent.to_owned())
.unwrap_or_else(|| "".to_string())
.unwrap_or_default()
}

// Helper function to get the other headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl Profile {
/// * `uuid` - Initial configured UUID
pub fn new(uuid: String) -> Self {
// Create a list of configured profiles
let profiles: Vec<Box<dyn C2Profile>> = Vec::new();
let mut profiles: Vec<Box<dyn C2Profile>> = Vec::new();

// HTTP profile specified
#[cfg(http)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def __init__(self, command_line, **kwargs):
type=ParameterType.String,
description=(
"Command used to run the payload "
"({path} is the path to the payload on the remote system)",
"({path} is the path to the payload on the remote system)"
),
display_name=(
"Command used to run the payload "
Expand Down
2 changes: 1 addition & 1 deletion agent_capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"http"
],
"mythic_version": "3.2",
"agent_version": "0.1.6",
"agent_version": "0.1.7",
"supported_wrappers": []
}
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"exclude_documentation_wrapper": true,
"exclude_agent_icons": false,
"remote_images": {
"thanatos": "ghcr.io/mythicagents/thanatos:v0.1.6"
"thanatos": "ghcr.io/mythicagents/thanatos:v0.1.7"
}
}

0 comments on commit a3cc2d7

Please sign in to comment.