From e321fe38544097cb7bfa54195bb944a37e50b59c Mon Sep 17 00:00:00 2001 From: Matt Ehrnschwender Date: Mon, 5 Aug 2024 16:58:02 -0400 Subject: [PATCH] Add test config --- .github/workflows/lint.yml | 3 + .github/workflows/test.yml | 6 ++ .../agent/testing/configs/config.json | 91 +++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 Payload_Type/thanatos/agent/testing/configs/config.json diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4869b7a..d071276 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,6 +17,9 @@ jobs: name: Lint Agent Code runs-on: ubuntu-latest + env: + JSON_CONFIG: testing/configs/config.json + defaults: run: working-directory: ${{ env.AGENT_CODE }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ca6b25..8ee7474 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,9 @@ jobs: name: Test Agent Code runs-on: ubuntu-latest + env: + JSON_CONFIG: testing/configs/config.json + defaults: run: working-directory: ${{ env.AGENT_CODE }} @@ -53,6 +56,9 @@ jobs: name: Sanitizer Test Agent Code runs-on: ubuntu-latest + env: + JSON_CONFIG: testing/configs/config.json + defaults: run: working-directory: ${{ env.AGENT_CODE }} diff --git a/Payload_Type/thanatos/agent/testing/configs/config.json b/Payload_Type/thanatos/agent/testing/configs/config.json new file mode 100644 index 0000000..2cac911 --- /dev/null +++ b/Payload_Type/thanatos/agent/testing/configs/config.json @@ -0,0 +1,91 @@ +{ + "description": "Description", + "uuid": "bb1e2059-7d19-4607-b193-8457fb7fa3db", + "payload_type": "thanatos", + "c2_profiles": [ + { + "c2_profile": "http", + "c2_profile_is_p2p": false, + "c2_profile_parameters": { + "AESPSK": { + "dec_key": "Os69CZmFoyfhH24WcVHxrXOEyMFOLeC4yCEYMK6DhMU=", + "enc_key": "Os69CZmFoyfhH24WcVHxrXOEyMFOLeC4yCEYMK6DhMU=", + "value": "aes256_hmac" + }, + "callback_host": "http://mythic", + "callback_interval": 5, + "callback_jitter": 0, + "callback_port": 80, + "encrypted_exchange_check": true, + "get_uri": "index", + "headers": { + "User-Agent": "User-Agent" + }, + "killdate": "2099-01-01", + "post_uri": "data", + "proxy_host": "", + "proxy_pass": "", + "proxy_port": "", + "proxy_user": "", + "query_path_name": "q" + } + } + ], + "build_parameters": [ + { + "name": "architecture", + "value": "amd64" + }, + { + "name": "buildmode", + "value": "release" + }, + { + "name": "initaction", + "value": "none" + }, + { + "name": "connection_retries", + "value": -1 + }, + { + "name": "working_hours", + "value": "00:00-23:59" + }, + { + "name": "domains", + "value": [] + }, + { + "name": "hostnames", + "value": [] + }, + { + "name": "usernames", + "value": [] + }, + { + "name": "tlsuntrusted", + "value": false + }, + { + "name": "spawnto", + "value": "" + }, + { + "name": "libexport", + "value": "" + }, + { + "name": "output", + "value": "executable" + } + ], + "commands": [ + "sleep", + "exit" + ], + "selected_os": "Linux", + "filename": "thanatos", + "wrapped_payload": "" +}