Skip to content

Commit

Permalink
fixing upload bug
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Feb 11, 2025
1 parent f600ef9 commit 5839d93
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 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.3.1] - 2025-02-11

### Changed

- 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

## [v2.3.0] - 2025-02-10

### Changed
Expand Down
5 changes: 3 additions & 2 deletions Payload_Type/apollo/apollo/agent_code/Tasks/upload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public upload(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask)
internal string ParsePath(UploadParameters p)
{
string uploadPath;
if (!string.IsNullOrEmpty(p.HostName))
string host = Environment.GetEnvironmentVariable("COMPUTERNAME");
if (!string.IsNullOrEmpty(p.HostName) && p.HostName != host)
{
if (!string.IsNullOrEmpty(p.RemotePath))
{
Expand All @@ -56,7 +57,7 @@ internal string ParsePath(UploadParameters p)
}
else
{
string host = Environment.GetEnvironmentVariable("COMPUTERNAME"); ;

string cwd = System.IO.Directory.GetCurrentDirectory().ToString();
if (cwd.StartsWith("\\\\"))
{
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.3.0"
version = "2.3.1"
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.1-rc42",
"agent_version": "2.3.0",
"agent_version": "2.3.1",
"supported_wrappers": ["service_wrapper", "scarecrow_wrapper"]
}

0 comments on commit 5839d93

Please sign in to comment.