Skip to content

Commit

Permalink
v2.0.34
Browse files Browse the repository at this point in the history
fixed an issue with parsing dynamichttp profiles when building
  • Loading branch information
its-a-feature committed Apr 9, 2024
1 parent b220edd commit 81b10d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Payload_Type/poseidon/poseidon/agent_code/CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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.34 - 2024-04-09

### Changed

- Fixed an issue where dynamichttp profiles weren't getting serialized properly for configuration

## 2.0.33 - 2024-03-29

### Changed
Expand Down
8 changes: 4 additions & 4 deletions Payload_Type/poseidon/poseidon/agentfunctions/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strings"
)

const version = "2.0.33"
const version = "2.0.34"

var payloadDefinition = agentstructs.PayloadType{
Name: "poseidon",
Expand Down Expand Up @@ -248,17 +248,17 @@ func build(payloadBuildMsg agentstructs.PayloadBuildMessage) agentstructs.Payloa
payloadBuildResponse.BuildStdErr = "Key error: " + key + "\n" + configData.Error
return payloadBuildResponse
}
err = json.Unmarshal(configData.Content, initialConfig[key])
tomlConfig := make(map[string]interface{})
err = json.Unmarshal(configData.Content, &tomlConfig)
if err != nil {
tomlConfig := make(map[string]interface{})
err = toml.Unmarshal(configData.Content, &tomlConfig)
if err != nil {
payloadBuildResponse.Success = false
payloadBuildResponse.BuildStdErr = "Key error: " + key + "\n" + err.Error()
return payloadBuildResponse
}
initialConfig[key] = tomlConfig
}
initialConfig[key] = tomlConfig
/*
agentConfigString = strings.ReplaceAll(string(configData.Content), "\\", "\\\\")
agentConfigString = strings.ReplaceAll(agentConfigString, "\"", "\\\"")
Expand Down
2 changes: 1 addition & 1 deletion agent_capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.33",
"agent_version": "2.0.34",
"supported_wrappers": []
}

0 comments on commit 81b10d2

Please sign in to comment.