Skip to content

Commit

Permalink
execute_assembly updates
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Oct 4, 2024
1 parent 181a539 commit 59ab593
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
6 changes: 6 additions & 0 deletions Payload_Type/apollo/CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v2.2.17] - 2024-10-04

### Changed

- updated execute_assembly injected stub to hopefully capture more output successfully

## [v2.2.16] - 2024-10-03

### Changed
Expand Down
13 changes: 9 additions & 4 deletions Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static void Main(string[] args)
_senderEvent,
_cts.Token.WaitHandle
});
if (!_cts.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] result))
while (_senderQueue.TryDequeue(out byte[] result))
{
pipe.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, pipe);
}
Expand Down Expand Up @@ -101,7 +101,7 @@ public static void Main(string[] args)
stderrSw.BufferWritten += OnBufferWrite;

Console.SetOut(stdoutSw);
Console.SetError(stdoutSw);
Console.SetError(stderrSw);

try
{
Expand Down Expand Up @@ -176,8 +176,13 @@ private static void OnBufferWrite(object sender, StringDataEventArgs args)
{
if (args.Data != null)
{
_senderQueue.Enqueue(Encoding.UTF8.GetBytes(args.Data));
_senderEvent.Set();
try
{
_senderQueue.Enqueue(Encoding.UTF8.GetBytes(args.Data));
_senderEvent.Set();
}
catch { }

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Apollo(PayloadType):
supported_os = [
SupportedOS.Windows
]
version = "2.2.16"
version = "2.2.17"
wrapper = False
wrapped_payloads = ["scarecrow_wrapper", "service_wrapper"]
note = """
Expand Down
2 changes: 1 addition & 1 deletion agent_capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"architectures": ["x86_64"],
"c2": ["http", "smb", "tcp", "websocket"],
"mythic_version": "3.3.0",
"agent_version": "2.2.15",
"agent_version": "2.2.17",
"supported_wrappers": ["service_wrapper", "scarecrow_wrapper"]
}

0 comments on commit 59ab593

Please sign in to comment.