mirror of
https://github.com/its-a-feature/Mythic
synced 2026-06-08 14:55:38 +00:00
updated the example translator code
This commit is contained in:
@@ -1 +1 @@
|
||||
FROM itsafeaturemythic/python38_translator_container:0.0.3
|
||||
FROM itsafeaturemythic/python38_translator_container:0.0.4
|
||||
@@ -6,7 +6,7 @@ import sys
|
||||
# If the associated C2Profile has `mythic_encrypts` set to False, then this function should also decrypt
|
||||
# the message
|
||||
# request will be JSON with the following format:
|
||||
# { "action": "translate_from_c2_format",
|
||||
# {
|
||||
# "enc_key": None or base64 of key if Mythic knows of one,
|
||||
# "dec_key": None or base64 of key if Mythic knows of one,
|
||||
# "uuid": uuid of the message,
|
||||
@@ -30,7 +30,7 @@ async def translate_from_c2_format(request) -> dict:
|
||||
# If the associated C2Profile has `mythic_encrypts` set to False, then this function should also encrypt
|
||||
# the message
|
||||
# request will be JSON with the following format:
|
||||
# { "action": "translate_to_c2_format",
|
||||
# {
|
||||
# "enc_key": None or base64 of key if Mythic knows of one,
|
||||
# "dec_key": None or base64 of key if Mythic knows of one,
|
||||
# "uuid": uuid of the message,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env python3
|
||||
from mythic_translator_container import mythic_service
|
||||
mythic_service.start_service_and_heartbeat(debug=True)
|
||||
mythic_service.start_service_and_heartbeat()
|
||||
|
||||
Reference in New Issue
Block a user