Skip to content

Commit 81b10d2

Browse files
committed
v2.0.34
fixed an issue with parsing dynamichttp profiles when building
1 parent b220edd commit 81b10d2

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

Payload_Type/poseidon/poseidon/agent_code/CHANGELOG.MD

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 2.0.34 - 2024-04-09
8+
9+
### Changed
10+
11+
- Fixed an issue where dynamichttp profiles weren't getting serialized properly for configuration
12+
713
## 2.0.33 - 2024-03-29
814

915
### Changed

Payload_Type/poseidon/poseidon/agentfunctions/builder.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"strings"
2020
)
2121

22-
const version = "2.0.33"
22+
const version = "2.0.34"
2323

2424
var payloadDefinition = agentstructs.PayloadType{
2525
Name: "poseidon",
@@ -248,17 +248,17 @@ func build(payloadBuildMsg agentstructs.PayloadBuildMessage) agentstructs.Payloa
248248
payloadBuildResponse.BuildStdErr = "Key error: " + key + "\n" + configData.Error
249249
return payloadBuildResponse
250250
}
251-
err = json.Unmarshal(configData.Content, initialConfig[key])
251+
tomlConfig := make(map[string]interface{})
252+
err = json.Unmarshal(configData.Content, &tomlConfig)
252253
if err != nil {
253-
tomlConfig := make(map[string]interface{})
254254
err = toml.Unmarshal(configData.Content, &tomlConfig)
255255
if err != nil {
256256
payloadBuildResponse.Success = false
257257
payloadBuildResponse.BuildStdErr = "Key error: " + key + "\n" + err.Error()
258258
return payloadBuildResponse
259259
}
260-
initialConfig[key] = tomlConfig
261260
}
261+
initialConfig[key] = tomlConfig
262262
/*
263263
agentConfigString = strings.ReplaceAll(string(configData.Content), "\\", "\\\\")
264264
agentConfigString = strings.ReplaceAll(agentConfigString, "\"", "\\\"")

agent_capabilities.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"architectures": ["x86_64", "arm_64"],
1111
"c2": ["http", "websocket", "dynamichttp", "poseidon_tcp"],
1212
"mythic_version": "3.2.20-rc7",
13-
"agent_version": "2.0.33",
13+
"agent_version": "2.0.34",
1414
"supported_wrappers": []
1515
}

0 commit comments

Comments
 (0)