diff --git a/CHANGELOG.md b/CHANGELOG.md index b4cab6b..9679b0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/mythic_container/PayloadBuilder.py b/mythic_container/PayloadBuilder.py index a67809e..1006e26 100644 --- a/mythic_container/PayloadBuilder.py +++ b/mythic_container/PayloadBuilder.py @@ -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 diff --git a/mythic_container/__init__.py b/mythic_container/__init__.py index 755d927..4befb9d 100644 --- a/mythic_container/__init__.py +++ b/mythic_container/__init__.py @@ -3,7 +3,7 @@ containerVersion = "v1.1.9" -PyPi_version = "0.4.18" +PyPi_version = "0.4.19" RabbitmqConnection = rabbitmqConnectionClass() diff --git a/mythic_container/mythic_service.py b/mythic_container/mythic_service.py index d931fec..af8419f 100755 --- a/mythic_container/mythic_service.py +++ b/mythic_container/mythic_service.py @@ -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] = [] diff --git a/setup.py b/setup.py index b40ca06..a7cd2fe 100755 --- a/setup.py +++ b/setup.py @@ -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",