Skip to content

Commit

Permalink
v0.4.19
Browse files Browse the repository at this point in the history
fixes issue where capital payload type name and lowercase module won't sync together
  • Loading branch information
its-a-feature committed Apr 29, 2024
1 parent ceab66b commit 7097157
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

## [v0.4.19] - 2024-04-29

### Changed

- Updated PayloadTypes to store lowercase names locally and check against module names lower case
- This fixes an issue where a Capital payload type name and a lowercase module name won't sync together

## [v0.4.18] - 2024-04-11

### Changed
Expand Down
1 change: 1 addition & 0 deletions mythic_container/PayloadBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ def get_build_instance_values(self):

def to_json(self):
agent_bytes = self.agent_icon_bytes
self.name = self.name.lower()
if agent_bytes is None:
if self.agent_icon_path is not None:
# read agent icon path
Expand Down
2 changes: 1 addition & 1 deletion mythic_container/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

containerVersion = "v1.1.9"

PyPi_version = "0.4.18"
PyPi_version = "0.4.19"

RabbitmqConnection = rabbitmqConnectionClass()

Expand Down
2 changes: 1 addition & 1 deletion mythic_container/mythic_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def syncPayloadData(pt: PayloadBuilder.PayloadType) -> None:
"container_version": mythic_container.containerVersion
}
for cls in MythicCommandBase.CommandBase.__subclasses__():
if cls.__module__.split(".")[0] == pt.name:
if cls.__module__.split(".")[0].lower() == pt.name:
logger.info(f"[*] Processing command {cls.cmd}")
if pt.name not in MythicCommandBase.commands:
MythicCommandBase.commands[pt.name] = []
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# This call to setup() does all the work
setup(
name="mythic_container",
version="0.4.18",
version="0.4.19",
description="Functionality for Mythic Services",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 7097157

Please sign in to comment.