mirror of
https://github.com/Aryma-f4/Ares-mythic.git
synced 2026-06-12 22:54:11 +00:00
refactor: rename ApolloInterop to AresInterop for consistency
Update namespace and project references from ApolloInterop to AresInterop throughout the codebase to maintain naming consistency with the project structure. This includes renaming files, directories, and updating all internal references while preserving all existing functionality.
This commit is contained in:
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.8.34525.116
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApolloInterop", "ApolloInterop\ApolloInterop.csproj", "{5B5BD587-7DCA-4306-B1C3-83A70D755F37}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AresInterop", "AresInterop\AresInterop.csproj", "{5B5BD587-7DCA-4306-B1C3-83A70D755F37}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HttpProfile", "HttpProfile\HttpProfile.csproj", "{74B393F3-4000-49AC-8116-DCCDB5F52344}"
|
||||
EndProject
|
||||
@@ -11,7 +11,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSKCryptography", "PSKCrypt
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlaintextCryptography", "PlaintextCrypto\PlaintextCryptography.csproj", "{ED320CE0-C28F-4B07-A353-9B14C261E8A3}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Apollo", "Apollo\Apollo.csproj", "{F606A86C-39AF-4B5A-B146-F14EDC1D762C}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ares", "Ares\Ares.csproj", "{F606A86C-39AF-4B5A-B146-F14EDC1D762C}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NamedPipeProfile", "NamedPipeProfile\NamedPipeProfile.csproj", "{3AF39094-7F42-4444-A278-FA656EB4678F}"
|
||||
EndProject
|
||||
BIN
Payload_Type/ares/ares/mythic/agent_functions/XF-09_Ares.png
Normal file
BIN
Payload_Type/ares/ares/mythic/agent_functions/XF-09_Ares.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -371,7 +371,7 @@ NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since t
|
||||
extra_variables = {
|
||||
|
||||
}
|
||||
success_message = f"Apollo {self.uuid} Successfully Built"
|
||||
success_message = f"Ares {self.uuid} Successfully Built"
|
||||
stdout_err = ""
|
||||
defines_profiles_upper = []
|
||||
compileType = "debug" if self.get_parameter('debug') else "release"
|
||||
@@ -558,14 +558,14 @@ NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since t
|
||||
# Get selected profiles from c2info
|
||||
selected_profiles = [c2.get_c2profile()['name'] for c2 in self.c2info]
|
||||
|
||||
# Filter Apollo.csproj to include only selected profile projects
|
||||
csproj_path = os.path.join(agent_build_path.name, "Apollo", "Apollo.csproj")
|
||||
# Filter Ares.csproj to include only selected profile projects
|
||||
csproj_path = os.path.join(agent_build_path.name, "Ares", "Ares.csproj")
|
||||
if os.path.exists(csproj_path):
|
||||
try:
|
||||
filter_csproj_profile_references(csproj_path, selected_profiles)
|
||||
|
||||
# Also filter Config.cs to remove #define statements for unselected profiles
|
||||
config_path = os.path.join(agent_build_path.name, "Apollo", "Config.cs")
|
||||
config_path = os.path.join(agent_build_path.name, "Ares", "Config.cs")
|
||||
if os.path.exists(config_path):
|
||||
filter_config_defines(config_path, selected_profiles)
|
||||
except Exception as e:
|
||||
@@ -603,13 +603,13 @@ NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since t
|
||||
embed_default_config = False
|
||||
break
|
||||
|
||||
output_path = f"{agent_build_path.name}/{buildPath}/Apollo.exe"
|
||||
output_path = f"{agent_build_path.name}/{buildPath}/Ares.exe"
|
||||
|
||||
# Build command with conditional embedding
|
||||
if self.get_parameter('debug'):
|
||||
command = f"dotnet build -c {compileType} -p:Platform=\"Any CPU\" -p:EmbedDefaultConfig={str(embed_default_config).lower()} -o {agent_build_path.name}/{buildPath}/ --verbosity quiet"
|
||||
command = f"dotnet build Ares.sln -c {compileType} -p:Platform=\"Any CPU\" -p:EmbedDefaultConfig={str(embed_default_config).lower()} -o {agent_build_path.name}/{buildPath}/ --verbosity quiet"
|
||||
else:
|
||||
command = f"dotnet build -c {compileType} -p:DebugType=None -p:DebugSymbols=false -p:DefineConstants=\"\" -p:Platform=\"Any CPU\" -p:EmbedDefaultConfig={str(embed_default_config).lower()} -o {agent_build_path.name}/{buildPath}/ --verbosity quiet"
|
||||
command = f"dotnet build Ares.sln -c {compileType} -p:DebugType=None -p:DebugSymbols=false -p:DefineConstants=\"\" -p:Platform=\"Any CPU\" -p:EmbedDefaultConfig={str(embed_default_config).lower()} -o {agent_build_path.name}/{buildPath}/ --verbosity quiet"
|
||||
await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage(
|
||||
PayloadUUID=self.uuid,
|
||||
StepName="Gathering Files",
|
||||
@@ -651,13 +651,13 @@ NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since t
|
||||
targetScreenshotInjectPath = "/srv/ScreenshotInject.exe"
|
||||
targetKeylogInjectPath = "/srv/KeylogInject.exe"
|
||||
targetExecutePEPath = "/srv/ExecutePE.exe"
|
||||
targetInteropPath = "/srv/ApolloInterop.dll"
|
||||
targetInteropPath = "/srv/AresInterop.dll"
|
||||
shutil.move(f"{agent_build_path.name}/{buildPath}/ExecuteAssembly.exe", targetExeAsmPath)
|
||||
shutil.move(f"{agent_build_path.name}/{buildPath}/PowerShellHost.exe", targetPowerPickPath)
|
||||
shutil.move(f"{agent_build_path.name}/{buildPath}/ScreenshotInject.exe", targetScreenshotInjectPath)
|
||||
shutil.move(f"{agent_build_path.name}/{buildPath}/KeylogInject.exe", targetKeylogInjectPath)
|
||||
shutil.move(f"{agent_build_path.name}/{buildPath}/ExecutePE.exe", targetExecutePEPath)
|
||||
shutil.move(f"{agent_build_path.name}/{buildPath}/ApolloInterop.dll", targetInteropPath)
|
||||
shutil.move(f"{agent_build_path.name}/{buildPath}/AresInterop.dll", targetInteropPath)
|
||||
if self.get_parameter('output_type') == "Source":
|
||||
shutil.make_archive(f"/tmp/{agent_build_path.name}/source", "zip", f"{agent_build_path.name}")
|
||||
await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage(
|
||||
@@ -763,9 +763,9 @@ NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since t
|
||||
)
|
||||
shutil.move(shellcode_path, working_path)
|
||||
if self.get_parameter('debug'):
|
||||
command = f"dotnet build -c {compileType} -p:OutputType=WinExe -p:Platform=\"Any CPU\""
|
||||
command = f"dotnet build Ares.sln -c {compileType} -p:OutputType=WinExe -p:Platform=\"Any CPU\""
|
||||
else:
|
||||
command = f"dotnet build -c {compileType} -p:DebugType=None -p:DebugSymbols=false -p:DefineConstants=\"\" -p:OutputType=WinExe -p:Platform=\"Any CPU\""
|
||||
command = f"dotnet build Ares.sln -c {compileType} -p:DebugType=None -p:DebugSymbols=false -p:DefineConstants=\"\" -p:OutputType=WinExe -p:Platform=\"Any CPU\""
|
||||
proc = await asyncio.create_subprocess_shell(
|
||||
command,
|
||||
stdout=asyncio.subprocess.PIPE,
|
||||
|
||||
Reference in New Issue
Block a user