Skip to content

Commit

Permalink
bug fix for file create mythic rpc with payload uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Feb 19, 2025
1 parent 86fb7eb commit 26c64c9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions 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](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.3.1-rc44] - 2025-02-18

### Changed

- Fixed a trailing comma in a SQL query that broke creating files based on payload uuid

## [3.3.1-rc43] - 2025-02-14

### Changed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1-rc43
3.3.1-rc44
2 changes: 1 addition & 1 deletion mythic-docker/src/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1-rc43
3.3.1-rc44
3 changes: 3 additions & 0 deletions mythic-docker/src/rabbitmq/recv_mythic_rpc_file_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func MythicRPCFileCreate(input MythicRPCFileCreateMessage) MythicRPCFileCreateMe
WHERE
task.id=$1`, input.TaskID)
if err != nil {
logging.LogError(err, "failed to fetch task")
response.Error = "Must supply a valid task ID"
return response
}
Expand All @@ -129,6 +130,7 @@ func MythicRPCFileCreate(input MythicRPCFileCreateMessage) MythicRPCFileCreateMe
WHERE
payload.uuid=$1`, input.PayloadUUID)
if err != nil {
logging.LogError(err, "failed to fetch payload uuid")
response.Error = "Must supply a valid payload UUID"
return response
}
Expand All @@ -154,6 +156,7 @@ func MythicRPCFileCreate(input MythicRPCFileCreateMessage) MythicRPCFileCreateMe
WHERE
callback.agent_callback_id=$1`, input.AgentCallbackID)
if err != nil {
logging.LogError(err, "failed to find agent callback id")
response.Error = "Must supply a valid agent callback id"
return response
}
Expand Down

0 comments on commit 26c64c9

Please sign in to comment.