Skip to content

Commit a34d874

Browse files
committed
fix reverse append
1 parent 98411a9 commit a34d874

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
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.33 - 2024-03-29
8+
9+
### Changed
10+
11+
- fix reverse append function
12+
713
## 2.0.32 - 2024-03-29
814

915
### Changed

Payload_Type/poseidon/poseidon/agent_code/pkg/profiles/httpx.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ func (c *C2HTTPx) transformAppendReverse(prev []byte, value string) ([]byte, err
559559
if len(value) > len(prev) {
560560
return nil, errors.New("append value is longer that full value")
561561
}
562-
return prev[:len(value)], nil
562+
return prev[:len(prev)-len(value)], nil
563563
}
564564

565565
func (c *C2HTTPx) transformXor(prev []byte, value string) ([]byte, error) {
@@ -734,7 +734,7 @@ func (c *C2HTTPx) CreateDynamicMessage(content []byte, isGetTaskingRequest bool)
734734
}
735735
var bodyBuffer *bytes.Buffer
736736
var bodyBytes []byte
737-
utils.PrintDebug(fmt.Sprintf("sending message: %s", string(content)))
737+
utils.PrintDebug(fmt.Sprintf("original message message: %s", string(content)))
738738
agentMessageBytes, err := c.performTransforms(content, variation)
739739
if err != nil {
740740
utils.PrintDebug(fmt.Sprintf("Failed to create message: %s", err.Error()))

Payload_Type/poseidon/poseidon/agentfunctions/builder.go

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

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

2424
var payloadDefinition = agentstructs.PayloadType{
2525
Name: "poseidon",

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.32",
13+
"agent_version": "2.0.33",
1414
"supported_wrappers": []
1515
}

0 commit comments

Comments
 (0)