Skip to content

Commit 5839d93

Browse files
committed
fixing upload bug
1 parent f600ef9 commit 5839d93

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

Payload_Type/apollo/CHANGELOG.MD

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [v2.3.1] - 2025-02-11
8+
9+
### Changed
10+
11+
- Fixed a bug in `upload` that would try to create a UNC path even if the supplied hostname was the same as the current host
12+
713
## [v2.3.0] - 2025-02-10
814

915
### Changed

Payload_Type/apollo/apollo/agent_code/Tasks/upload.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public upload(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask)
4242
internal string ParsePath(UploadParameters p)
4343
{
4444
string uploadPath;
45-
if (!string.IsNullOrEmpty(p.HostName))
45+
string host = Environment.GetEnvironmentVariable("COMPUTERNAME");
46+
if (!string.IsNullOrEmpty(p.HostName) && p.HostName != host)
4647
{
4748
if (!string.IsNullOrEmpty(p.RemotePath))
4849
{
@@ -56,7 +57,7 @@ internal string ParsePath(UploadParameters p)
5657
}
5758
else
5859
{
59-
string host = Environment.GetEnvironmentVariable("COMPUTERNAME"); ;
60+
6061
string cwd = System.IO.Directory.GetCurrentDirectory().ToString();
6162
if (cwd.StartsWith("\\\\"))
6263
{

Payload_Type/apollo/apollo/mythic/agent_functions/builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Apollo(PayloadType):
2121
supported_os = [
2222
SupportedOS.Windows
2323
]
24-
version = "2.3.0"
24+
version = "2.3.1"
2525
wrapper = False
2626
wrapped_payloads = ["scarecrow_wrapper", "service_wrapper"]
2727
note = """

agent_capabilities.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"architectures": ["x86_64"],
1212
"c2": ["http", "smb", "tcp", "websocket"],
1313
"mythic_version": "3.3.1-rc42",
14-
"agent_version": "2.3.0",
14+
"agent_version": "2.3.1",
1515
"supported_wrappers": ["service_wrapper", "scarecrow_wrapper"]
1616
}

0 commit comments

Comments
 (0)