You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mythic_container/MythicCommandBase.py
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ class PTRPCDynamicQueryFunctionMessage:
192
192
AgentCallbackID (str): Agent UUID of the callback where this function is called
193
193
PayloadOS (str): The selected OS when the backing payload for this callback was created
194
194
PayloadUUID (str): The UUID of the backing payload for this callback that can be used to fetch more information
195
-
195
+
Secrets (dict): User secrets based on the operator that issued this action
196
196
Functions:
197
197
to_json(self): return dictionary form of class
198
198
"""
@@ -206,6 +206,7 @@ def __init__(self,
206
206
payload_uuid: str="",
207
207
agent_callback_id: str="",
208
208
callback_display_id: int=0,
209
+
secrets: dict= {},
209
210
**kwargs
210
211
):
211
212
self.Command=command
@@ -216,6 +217,7 @@ def __init__(self,
216
217
self.PayloadUUID=payload_uuid
217
218
self.AgentCallbackID=agent_callback_id
218
219
self.CallbackDisplayID=callback_display_id
220
+
self.Secrets=secrets
219
221
220
222
defto_json(self):
221
223
return {
@@ -226,7 +228,8 @@ def to_json(self):
226
228
"payload_os": self.PayloadOS,
227
229
"payload_uuid": self.PayloadUUID,
228
230
"agent_callback_id": self.AgentCallbackID,
229
-
"callback_display_id": self.CallbackDisplayID
231
+
"callback_display_id": self.CallbackDisplayID,
232
+
"secrets": self.Secrets
230
233
}
231
234
232
235
def__str__(self):
@@ -1624,6 +1627,7 @@ class PTTaskMessageAllData:
1624
1627
BuildParameters (list[MythicRPCPayloadConfigurationBuildParameter]): Information about the build parameters used to generate the payload for this callback
1625
1628
C2Profiles (list[MythicRPCPayloadConfigurationC2Profile]): Information about the c2 profiles associated with this callback and their values
1626
1629
args: The running instance of arguments for this task, this allows you to modify any arguments as necessary in your `create_go_tasking` function
1630
+
Secrets (dict): Dictionary of secrets associated with the user for this action
@@ -1690,6 +1697,7 @@ class PTOnNewCallbackAllData:
1690
1697
PayloadType (str): The name of the payload type
1691
1698
BuildParameters (list[MythicRPCPayloadConfigurationBuildParameter]): Information about the build parameters used to generate the payload for this callback
1692
1699
C2Profiles (list[MythicRPCPayloadConfigurationC2Profile]): Information about the c2 profiles associated with this callback and their values
1700
+
Secrets (dict): Dictionary of secrets from the user associated with this action
0 commit comments