Skip to content

Commit

Permalink
fixing an update with MythicRPC Encrypts/Decrypts RPC Calls
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Sep 16, 2024
1 parent 4157add commit d78d9a0
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Payload_Type/arachne/.docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mythic-container==0.5.9
mythic-container==0.5.12
requests
bs4
6 changes: 4 additions & 2 deletions Payload_Type/arachne/arachne/agent_functions/cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=message.encode(),
IncludesUUID=False,
IsBase64Encoded=False
IsBase64Encoded=False,
C2Profile="webshell"
))
if encrypted_resp.Success:
try:
Expand All @@ -66,7 +67,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=response_data,
IncludesUUID=False,
IsBase64Encoded=True
IsBase64Encoded=True,
C2Profile="webshell"
))
if decrypted_resp.Success:
await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage(
Expand Down
6 changes: 4 additions & 2 deletions Payload_Type/arachne/arachne/agent_functions/checkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ async def create_go_tasking(self, taskData: MythicCommandBase.PTTaskMessageAllDa
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=message.encode(),
IncludesUUID=False,
IsBase64Encoded=False
IsBase64Encoded=False,
C2Profile="webshell"
))
if encrypted_resp.Success:
try:
Expand All @@ -50,7 +51,8 @@ async def create_go_tasking(self, taskData: MythicCommandBase.PTTaskMessageAllDa
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=response_data,
IncludesUUID=False,
IsBase64Encoded=True
IsBase64Encoded=True,
C2Profile="webshell"
))
if decrypted_resp.Success:
info = decrypted_resp.Message.decode().split('|')
Expand Down
6 changes: 4 additions & 2 deletions Payload_Type/arachne/arachne/agent_functions/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=message.encode(),
IncludesUUID=False,
IsBase64Encoded=False
IsBase64Encoded=False,
C2Profile="webshell"
))
if encrypted_resp.Success:
try:
Expand All @@ -68,7 +69,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=response_data,
IncludesUUID=False,
IsBase64Encoded=True
IsBase64Encoded=True,
C2Profile="webshell"
))
if decrypted_resp.Success:
file_resp = await SendMythicRPCFileCreate(MythicRPCFileCreateMessage(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=message.encode(),
IncludesUUID=False,
IsBase64Encoded=False
IsBase64Encoded=False,
C2Profile="webshell"
))
if encrypted_resp.Success:
try:
Expand All @@ -69,7 +70,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=response_data,
IncludesUUID=False,
IsBase64Encoded=True
IsBase64Encoded=True,
C2Profile="webshell"
))
if decrypted_resp.Success:
await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage(
Expand Down
6 changes: 4 additions & 2 deletions Payload_Type/arachne/arachne/agent_functions/ls.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=message.encode(),
IncludesUUID=False,
IsBase64Encoded=False
IsBase64Encoded=False,
C2Profile="webshell"
))
if encrypted_resp.Success:
try:
Expand All @@ -63,7 +64,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=response_data,
IncludesUUID=False,
IsBase64Encoded=True
IsBase64Encoded=True,
C2Profile="webshell"
))
if decrypted_resp.Success:
await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage(
Expand Down
6 changes: 4 additions & 2 deletions Payload_Type/arachne/arachne/agent_functions/pwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ async def create_go_tasking(self, taskData: MythicCommandBase.PTTaskMessageAllDa
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=message.encode(),
IncludesUUID=False,
IsBase64Encoded=False
IsBase64Encoded=False,
C2Profile="webshell"
))
if encrypted_resp.Success:
try:
Expand All @@ -52,7 +53,8 @@ async def create_go_tasking(self, taskData: MythicCommandBase.PTTaskMessageAllDa
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=response_data,
IncludesUUID=False,
IsBase64Encoded=True
IsBase64Encoded=True,
C2Profile="webshell"
))
logger.info(str(decrypted_resp.Message))
if decrypted_resp.Success:
Expand Down
6 changes: 4 additions & 2 deletions Payload_Type/arachne/arachne/agent_functions/rm.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=message.encode(),
IncludesUUID=False,
IsBase64Encoded=False
IsBase64Encoded=False,
C2Profile="webshell"
))
if encrypted_resp.Success:
try:
Expand All @@ -64,7 +65,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=response_data,
IncludesUUID=False,
IsBase64Encoded=True
IsBase64Encoded=True,
C2Profile="webshell"
))
if decrypted_resp.Success:
await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage(
Expand Down
6 changes: 4 additions & 2 deletions Payload_Type/arachne/arachne/agent_functions/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=message.encode(),
IncludesUUID=False,
IsBase64Encoded=False
IsBase64Encoded=False,
C2Profile="webshell"
))
if encrypted_resp.Success:
try:
Expand All @@ -64,7 +65,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=response_data,
IncludesUUID=False,
IsBase64Encoded=True
IsBase64Encoded=True,
C2Profile="webshell"
))
if decrypted_resp.Success:
await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage(
Expand Down
6 changes: 4 additions & 2 deletions Payload_Type/arachne/arachne/agent_functions/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=message.encode(),
IncludesUUID=False,
IsBase64Encoded=False
IsBase64Encoded=False,
C2Profile="webshell"
))
if encrypted_resp.Success:
try:
Expand All @@ -66,7 +67,8 @@ async def create_go_tasking(self,
AgentCallbackUUID=taskData.Callback.AgentCallbackID,
Message=response_data,
IncludesUUID=False,
IsBase64Encoded=True
IsBase64Encoded=True,
C2Profile="webshell"
))
if decrypted_resp.Success:
await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage(
Expand Down

0 comments on commit d78d9a0

Please sign in to comment.