-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Misleading Comment
I am using the Python mythic-container v0.6.0 package.
In the SendMythicRPCOperationEventLogCreate code, there is a misleading comment on line 19:
MessageLevel: str = "info", # info, debug, auth, api, agent_message
However, MessageLevel actually accepts info, warning, and debug according to the documentation (which aligns with my testing):
https://docs.mythic-c2.net/mythicrpc/mythicrpc#sendmythicrpcoperationeventlogcreate
Unused field
As an aside, the Warning field is not processed when set. For example, I set MessageLevel to "info" and Warning to True, but the message did not appear as a warning in the console. Alternatively, I set the MessageLevel to "warning" and Warning to False, but the message appears as a warning.
class MythicRPCOperationEventLogCreateMessage:
def __init__(self,
TaskID: int = None,
CallbackID: int = None,
AgentCallbackID: str = None,
OperationID: int = None,
Message: str = None,
MessageLevel: str = "info", # info, debug, auth, api, agent_message
Warning: bool = False,
**kwargs):
That said, is the Warning field necessary?
Metadata
Metadata
Assignees
Labels
No labels