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:
Aryma
2026-04-15 02:05:42 +07:00
parent 5110b9e400
commit afac72ad49
96 changed files with 13 additions and 13 deletions

View File

@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.8.34525.116 VisualStudioVersion = 17.8.34525.116
MinimumVisualStudioVersion = 10.0.40219.1 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 EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HttpProfile", "HttpProfile\HttpProfile.csproj", "{74B393F3-4000-49AC-8116-DCCDB5F52344}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HttpProfile", "HttpProfile\HttpProfile.csproj", "{74B393F3-4000-49AC-8116-DCCDB5F52344}"
EndProject EndProject
@@ -11,7 +11,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSKCryptography", "PSKCrypt
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlaintextCryptography", "PlaintextCrypto\PlaintextCryptography.csproj", "{ED320CE0-C28F-4B07-A353-9B14C261E8A3}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlaintextCryptography", "PlaintextCrypto\PlaintextCryptography.csproj", "{ED320CE0-C28F-4B07-A353-9B14C261E8A3}"
EndProject 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 EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NamedPipeProfile", "NamedPipeProfile\NamedPipeProfile.csproj", "{3AF39094-7F42-4444-A278-FA656EB4678F}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NamedPipeProfile", "NamedPipeProfile\NamedPipeProfile.csproj", "{3AF39094-7F42-4444-A278-FA656EB4678F}"
EndProject EndProject

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -371,7 +371,7 @@ NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since t
extra_variables = { extra_variables = {
} }
success_message = f"Apollo {self.uuid} Successfully Built" success_message = f"Ares {self.uuid} Successfully Built"
stdout_err = "" stdout_err = ""
defines_profiles_upper = [] defines_profiles_upper = []
compileType = "debug" if self.get_parameter('debug') else "release" 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 # Get selected profiles from c2info
selected_profiles = [c2.get_c2profile()['name'] for c2 in self.c2info] selected_profiles = [c2.get_c2profile()['name'] for c2 in self.c2info]
# Filter Apollo.csproj to include only selected profile projects # Filter Ares.csproj to include only selected profile projects
csproj_path = os.path.join(agent_build_path.name, "Apollo", "Apollo.csproj") csproj_path = os.path.join(agent_build_path.name, "Ares", "Ares.csproj")
if os.path.exists(csproj_path): if os.path.exists(csproj_path):
try: try:
filter_csproj_profile_references(csproj_path, selected_profiles) filter_csproj_profile_references(csproj_path, selected_profiles)
# Also filter Config.cs to remove #define statements for unselected 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): if os.path.exists(config_path):
filter_config_defines(config_path, selected_profiles) filter_config_defines(config_path, selected_profiles)
except Exception as e: 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 embed_default_config = False
break 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 # Build command with conditional embedding
if self.get_parameter('debug'): 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: 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( await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage(
PayloadUUID=self.uuid, PayloadUUID=self.uuid,
StepName="Gathering Files", 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" targetScreenshotInjectPath = "/srv/ScreenshotInject.exe"
targetKeylogInjectPath = "/srv/KeylogInject.exe" targetKeylogInjectPath = "/srv/KeylogInject.exe"
targetExecutePEPath = "/srv/ExecutePE.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}/ExecuteAssembly.exe", targetExeAsmPath)
shutil.move(f"{agent_build_path.name}/{buildPath}/PowerShellHost.exe", targetPowerPickPath) 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}/ScreenshotInject.exe", targetScreenshotInjectPath)
shutil.move(f"{agent_build_path.name}/{buildPath}/KeylogInject.exe", targetKeylogInjectPath) 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}/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": if self.get_parameter('output_type') == "Source":
shutil.make_archive(f"/tmp/{agent_build_path.name}/source", "zip", f"{agent_build_path.name}") shutil.make_archive(f"/tmp/{agent_build_path.name}/source", "zip", f"{agent_build_path.name}")
await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( 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) shutil.move(shellcode_path, working_path)
if self.get_parameter('debug'): 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: 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( proc = await asyncio.create_subprocess_shell(
command, command,
stdout=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE,