From f75a0434a8aa5694247a45efd68b00f929aba7a2 Mon Sep 17 00:00:00 2001 From: its-a-feature Date: Thu, 11 Apr 2024 08:43:33 -0500 Subject: [PATCH] v2.0.35 Fixing poseidon_tcp configuration issue --- Payload_Type/poseidon/poseidon/agent_code/CHANGELOG.MD | 6 ++++++ .../poseidon/agent_code/pkg/profiles/poseidon_tcp.go | 4 ++-- Payload_Type/poseidon/poseidon/agentfunctions/builder.go | 2 +- agent_capabilities.json | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Payload_Type/poseidon/poseidon/agent_code/CHANGELOG.MD b/Payload_Type/poseidon/poseidon/agent_code/CHANGELOG.MD index 208c885..bacd3a9 100644 --- a/Payload_Type/poseidon/poseidon/agent_code/CHANGELOG.MD +++ b/Payload_Type/poseidon/poseidon/agent_code/CHANGELOG.MD @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 2.0.35 - 2024-04-11 + +### Changed + +- Fixed an issue with poseidon_tcp values not getting stamped in correctly during compile time due to bad variable name + ## 2.0.34 - 2024-04-09 ### Changed diff --git a/Payload_Type/poseidon/poseidon/agent_code/pkg/profiles/poseidon_tcp.go b/Payload_Type/poseidon/poseidon/agent_code/pkg/profiles/poseidon_tcp.go index 53c5d8a..baad45e 100644 --- a/Payload_Type/poseidon/poseidon/agent_code/pkg/profiles/poseidon_tcp.go +++ b/Payload_Type/poseidon/poseidon/agent_code/pkg/profiles/poseidon_tcp.go @@ -24,7 +24,7 @@ import ( ) // All variables must be a string so they can be set with ldflags -var tcp_initial_config string +var poseidon_tcp_initial_config string type TCPInitialConfig struct { Port uint `json:"port"` @@ -49,7 +49,7 @@ type C2PoseidonTCP struct { } func init() { - initialConfigBytes, err := base64.StdEncoding.DecodeString(tcp_initial_config) + initialConfigBytes, err := base64.StdEncoding.DecodeString(poseidon_tcp_initial_config) if err != nil { utils.PrintDebug(fmt.Sprintf("error trying to decode initial poseidon tcp config, exiting: %v\n", err)) os.Exit(1) diff --git a/Payload_Type/poseidon/poseidon/agentfunctions/builder.go b/Payload_Type/poseidon/poseidon/agentfunctions/builder.go index 613557d..43c6b2a 100644 --- a/Payload_Type/poseidon/poseidon/agentfunctions/builder.go +++ b/Payload_Type/poseidon/poseidon/agentfunctions/builder.go @@ -19,7 +19,7 @@ import ( "strings" ) -const version = "2.0.34" +const version = "2.0.35" var payloadDefinition = agentstructs.PayloadType{ Name: "poseidon", diff --git a/agent_capabilities.json b/agent_capabilities.json index de5396d..1e6ddff 100644 --- a/agent_capabilities.json +++ b/agent_capabilities.json @@ -10,6 +10,6 @@ "architectures": ["x86_64", "arm_64"], "c2": ["http", "websocket", "dynamichttp", "poseidon_tcp"], "mythic_version": "3.2.20-rc7", - "agent_version": "2.0.34", + "agent_version": "2.0.35", "supported_wrappers": [] } \ No newline at end of file