Skip to content

Commit

Permalink
updating to fix payload search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Nov 6, 2024
1 parent 6683e98 commit ab63e38
Show file tree
Hide file tree
Showing 4 changed files with 20 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-rc22] -2024-11-6

### Changed

- Payload Search wasn't properly filtering on filename or description

## [3.3.1-rc21] - 2024-11-5

### 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-rc21
3.3.1-rc22
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-rc21
3.3.1-rc22
12 changes: 12 additions & 0 deletions mythic-docker/src/rabbitmq/recv_mythic_rpc_payload_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ func MythicRPCPayloadSearch(input MythicRPCPayloadSearchMessage) MythicRPCPayloa
response.Error = err.Error()
return response
} else {
if input.Description != "" && finalPayload.Description != input.Description {
continue
}
if input.Filename != "" && finalPayload.Filename != input.Filename {
continue
}
finalPayloads = append(finalPayloads, finalPayload)
}
}
Expand All @@ -140,6 +146,12 @@ func MythicRPCPayloadSearch(input MythicRPCPayloadSearchMessage) MythicRPCPayloa
response.Error = err.Error()
return response
} else {
if input.Description != "" && finalPayload.Description != input.Description {
continue
}
if input.Filename != "" && finalPayload.Filename != input.Filename {
continue
}
finalPayloads = append(finalPayloads, finalPayload)
}
}
Expand Down

0 comments on commit ab63e38

Please sign in to comment.