mirror of
https://github.com/Aryma-f4/Ares-mythic.git
synced 2026-06-24 09:54:13 +00:00
Compare commits
6 Commits
afac72ad49
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfb7ea177c | ||
|
|
0c209d7201 | ||
|
|
b88b3a2184 | ||
|
|
6a3bf4ffbf | ||
|
|
286accf271 | ||
|
|
3ba28c3197 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@ __pycache__/
|
|||||||
**/*.dll
|
**/*.dll
|
||||||
# Sphinx documentation
|
# Sphinx documentation
|
||||||
docs/_build/
|
docs/_build/
|
||||||
|
debug_vps/
|
||||||
# Environments
|
# Environments
|
||||||
#.env
|
#.env
|
||||||
.venv
|
.venv
|
||||||
|
|||||||
@@ -17,7 +17,11 @@ RUN /venv/bin/python -m pip install git+https://github.com/MEhrn00/donut.git@v2.
|
|||||||
COPY [".", "."]
|
COPY [".", "."]
|
||||||
|
|
||||||
# fetch all dependencies
|
# fetch all dependencies
|
||||||
RUN cd ares/agent_code && dotnet restore --verbosity quiet && rm donut ; cp /donut donut
|
RUN chmod -R u+w /Mythic/ares/agent_code && \
|
||||||
|
cd ares/agent_code && \
|
||||||
|
dotnet restore Ares/Ares.csproj --verbosity quiet && \
|
||||||
|
rm -f donut && \
|
||||||
|
cp /donut donut
|
||||||
RUN cd ares/agent_code && cp COFFLoader.dll /COFFLoader.dll
|
RUN cd ares/agent_code && cp COFFLoader.dll /COFFLoader.dll
|
||||||
|
|
||||||
CMD ["bash", "-c", "cp /donut /Mythic/ares/agent_code/donut && /venv/bin/python main.py"]
|
CMD ["bash", "-c", "cp /donut /Mythic/ares/agent_code/donut && /venv/bin/python main.py"]
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<Reference Include="System.Security" />
|
<Reference Include="System.Security" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
<ProjectReference Include="..\DInvokeResolver\DInvokeResolver.csproj" />
|
<ProjectReference Include="..\DInvokeResolver\DInvokeResolver.csproj" />
|
||||||
<ProjectReference Include="..\EncryptedFileStore\EncryptedFileStore.csproj" />
|
<ProjectReference Include="..\EncryptedFileStore\EncryptedFileStore.csproj" />
|
||||||
<ProjectReference Include="..\HttpProfile\HttpProfile.csproj" />
|
<ProjectReference Include="..\HttpProfile\HttpProfile.csproj" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#define C2PROFILE_NAME_UPPER
|
#define C2PROFILE_NAME_UPPER
|
||||||
|
|
||||||
//#define LOCAL_BUILD
|
//#define LOCAL_BUILD
|
||||||
|
|
||||||
@@ -280,14 +280,14 @@ namespace Apollo
|
|||||||
public static int RegistryComparison = 1; // 1=Matches, 2=Contains
|
public static int RegistryComparison = 1; // 1=Matches, 2=Contains
|
||||||
#else
|
#else
|
||||||
// Environmental Keying Configuration
|
// Environmental Keying Configuration
|
||||||
public static bool KeyingEnabled = keying_enabled_here;
|
public static bool KeyingEnabled = "keying_enabled_here" == "true";
|
||||||
public static int KeyingMethod = keying_method_here; // 1=Hostname, 2=Domain, 3=Registry
|
public static int KeyingMethod = int.Parse("keying_method_here"); // 1=Hostname, 2=Domain, 3=Registry
|
||||||
public static string KeyingValueHash = "keying_value_hash_here";
|
public static string KeyingValueHash = "keying_value_hash_here";
|
||||||
|
|
||||||
// Registry Keying Configuration
|
// Registry Keying Configuration
|
||||||
public static string RegistryPath = "registry_path_here";
|
public static string RegistryPath = "registry_path_here";
|
||||||
public static string RegistryValue = "registry_value_here";
|
public static string RegistryValue = "registry_value_here";
|
||||||
public static int RegistryComparison = registry_comparison_here; // 1=Matches, 2=Contains
|
public static int RegistryComparison = int.Parse("registry_comparison_here"); // 1=Matches, 2=Contains
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ using AS = ApolloInterop.Structs.ApolloStructs;
|
|||||||
using TTasks = System.Threading.Tasks;
|
using TTasks = System.Threading.Tasks;
|
||||||
using ApolloInterop.Classes.Core;
|
using ApolloInterop.Classes.Core;
|
||||||
using ApolloInterop.Structs.ApolloStructs;
|
using ApolloInterop.Structs.ApolloStructs;
|
||||||
using Tasks;
|
|
||||||
using ApolloInterop.Utils;
|
using ApolloInterop.Utils;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ using System.Collections.Concurrent;
|
|||||||
using ApolloInterop.Classes.Core;
|
using ApolloInterop.Classes.Core;
|
||||||
using ApolloInterop.Classes.Events;
|
using ApolloInterop.Classes.Events;
|
||||||
using ApolloInterop.Enums.ApolloEnums;
|
using ApolloInterop.Enums.ApolloEnums;
|
||||||
|
using System.IO;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using ApolloInterop.Utils;
|
using ApolloInterop.Utils;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
<TargetFramework>net451</TargetFramework>
|
<TargetFramework>net451</TargetFramework>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<LangVersion>12</LangVersion>
|
<LangVersion>12</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>disable</Nullable>
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
|
<NoWarn>$(NoWarn);0168;0169;0659;0660;0661;8632</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System.Security" />
|
<Reference Include="System.Security" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="PolySharp" Version="1.14.1" />
|
<PackageReference Include="PolySharp" Version="1.14.1" />
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj">
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj">
|
||||||
<Project>{5b5bd587-7dca-4306-b1c3-83a70d755f37}</Project>
|
<Project>{5b5bd587-7dca-4306-b1c3-83a70d755f37}</Project>
|
||||||
<Name>ApolloInterop</Name>
|
<Name>AresInterop</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\PSKCrypto\PSKCryptography.csproj">
|
<ProjectReference Include="..\PSKCrypto\PSKCryptography.csproj">
|
||||||
<Project>{c8fc8d87-30db-4fc5-880a-9cd7d156127a}</Project>
|
<Project>{c8fc8d87-30db-4fc5-880a-9cd7d156127a}</Project>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<Reference Include="System.Security" />
|
<Reference Include="System.Security" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="All" />
|
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="All" />
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
<ProjectReference Include="..\ExecutePE\ExecutePE.csproj" />
|
<ProjectReference Include="..\ExecutePE\ExecutePE.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="FodyWeavers.xml" />
|
<Content Include="FodyWeavers.xml" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
<ProjectReference Include="..\HttpxTransform\HttpxTransform.csproj" />
|
<ProjectReference Include="..\HttpxTransform\HttpxTransform.csproj" />
|
||||||
<ProjectReference Include="..\PSKCrypto\PSKCryptography.csproj" />
|
<ProjectReference Include="..\PSKCrypto\PSKCryptography.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -8,6 +8,6 @@
|
|||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="FodyWeavers.xml" />
|
<Content Include="FodyWeavers.xml" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="All" />
|
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="All" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="FodyWeavers.xml" />
|
<Content Include="FodyWeavers.xml" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="PolySharp" Version="1.14.1" />
|
<PackageReference Include="PolySharp" Version="1.14.1" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net451</TargetFramework>
|
<TargetFramework>net451</TargetFramework>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
@@ -10,13 +10,13 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System.Management.Automation">
|
|
||||||
<HintPath>..\packages\System.Management.Automation6.1.7\System.Management.Automation.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.ServiceProcess" />
|
<Reference Include="System.ServiceProcess" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Remove="powershell.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="All" />
|
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="All" />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<AssemblyName>WebsocketProfile</AssemblyName>
|
<AssemblyName>WebsocketProfile</AssemblyName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\ApolloInterop\ApolloInterop.csproj" />
|
<ProjectReference Include="..\AresInterop\AresInterop.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
|
|||||||
@@ -3,8 +3,10 @@
|
|||||||
<TargetFramework>net451</TargetFramework>
|
<TargetFramework>net451</TargetFramework>
|
||||||
<LangVersion>12</LangVersion>
|
<LangVersion>12</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||||
|
<WarningsAsErrors></WarningsAsErrors>
|
||||||
|
<WarningsNotAsErrors>$(WarningsNotAsErrors);0108;0168;0169;0219;0649;8600;8602;8603;8618;8625;8629</WarningsNotAsErrors>
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
||||||
|
|||||||
@@ -135,19 +135,21 @@ def validate_httpx_config(config_data):
|
|||||||
class Ares(PayloadType):
|
class Ares(PayloadType):
|
||||||
name = "ares"
|
name = "ares"
|
||||||
file_extension = "exe"
|
file_extension = "exe"
|
||||||
author = "@djhohnstein, @its_a_feature_"
|
author = "Aryma-f4"
|
||||||
mythic_encrypts = True
|
mythic_encrypts = True
|
||||||
supported_os = [
|
supported_os = [
|
||||||
SupportedOS.Windows
|
SupportedOS.Windows
|
||||||
]
|
]
|
||||||
semver = "2.4.12"
|
semver = "2.4.12-v5"
|
||||||
|
description = "Ares Windows payload type for Mythic."
|
||||||
wrapper = False
|
wrapper = False
|
||||||
wrapped_payloads = ["scarecrow_wrapper", "service_wrapper"]
|
wrapped_payloads = ["scarecrow_wrapper", "service_wrapper"]
|
||||||
c2_profiles = ["http", "httpx", "smb", "tcp", "websocket", "azure_blob"]
|
c2_profiles = ["http", "httpx", "smb", "tcp", "websocket", "azure_blob"]
|
||||||
note = """
|
note = """
|
||||||
A fully featured .NET 4.0 compatible training agent. Version: {}.
|
Ares Windows payload type for Mythic. Version: {}.
|
||||||
NOTE: P2P Not compatible with v2.2 agents!
|
Supports WinExe, shellcode, source, and service builds.
|
||||||
NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since their arguments are different
|
NOTE: P2P is not compatible with v2.2 agents.
|
||||||
|
NOTE: v2.3.2+ uses a different BOF loader than v2.3.1 and they are not compatible.
|
||||||
""".format(semver)
|
""".format(semver)
|
||||||
supports_dynamic_loading = True
|
supports_dynamic_loading = True
|
||||||
shellcode_format_options = ["Binary", "Base64", "C", "Ruby", "Python", "Powershell", "C#", "Hex"]
|
shellcode_format_options = ["Binary", "Base64", "C", "Ruby", "Python", "Powershell", "C#", "Hex"]
|
||||||
@@ -607,9 +609,9 @@ NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since t
|
|||||||
|
|
||||||
# Build command with conditional embedding
|
# Build command with conditional embedding
|
||||||
if self.get_parameter('debug'):
|
if self.get_parameter('debug'):
|
||||||
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"
|
command = f"dotnet build Ares/Ares.csproj -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 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"
|
command = f"dotnet build Ares/Ares.csproj -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",
|
||||||
@@ -646,18 +648,52 @@ NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since t
|
|||||||
StepSuccess=True
|
StepSuccess=True
|
||||||
))
|
))
|
||||||
resp.status = BuildStatus.Success
|
resp.status = BuildStatus.Success
|
||||||
|
missing_optional_artifacts = []
|
||||||
|
|
||||||
|
def move_first_existing(candidates, target_path, required=False):
|
||||||
|
for candidate in candidates:
|
||||||
|
if os.path.exists(candidate):
|
||||||
|
shutil.move(candidate, target_path)
|
||||||
|
return True
|
||||||
|
if required:
|
||||||
|
raise FileNotFoundError(f"Unable to locate artifact for {target_path}: {candidates}")
|
||||||
|
missing_optional_artifacts.append((target_path, candidates))
|
||||||
|
return False
|
||||||
|
|
||||||
targetExeAsmPath = "/srv/ExecuteAssembly.exe"
|
targetExeAsmPath = "/srv/ExecuteAssembly.exe"
|
||||||
targetPowerPickPath = "/srv/PowerShellHost.exe"
|
targetPowerPickPath = "/srv/PowerShellHost.exe"
|
||||||
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/AresInterop.dll"
|
targetInteropPath = "/srv/AresInterop.dll"
|
||||||
shutil.move(f"{agent_build_path.name}/{buildPath}/ExecuteAssembly.exe", targetExeAsmPath)
|
move_first_existing([
|
||||||
shutil.move(f"{agent_build_path.name}/{buildPath}/PowerShellHost.exe", targetPowerPickPath)
|
f"{agent_build_path.name}/{buildPath}/ExecuteAssembly.exe",
|
||||||
shutil.move(f"{agent_build_path.name}/{buildPath}/ScreenshotInject.exe", targetScreenshotInjectPath)
|
f"{agent_build_path.name}/ExecuteAssembly/bin/Release/net451/ExecuteAssembly.exe",
|
||||||
shutil.move(f"{agent_build_path.name}/{buildPath}/KeylogInject.exe", targetKeylogInjectPath)
|
], targetExeAsmPath)
|
||||||
shutil.move(f"{agent_build_path.name}/{buildPath}/ExecutePE.exe", targetExecutePEPath)
|
move_first_existing([
|
||||||
shutil.move(f"{agent_build_path.name}/{buildPath}/AresInterop.dll", targetInteropPath)
|
f"{agent_build_path.name}/{buildPath}/PowerShellHost.exe",
|
||||||
|
f"{agent_build_path.name}/PowerShellHost/bin/Release/net451/PowerShellHost.exe",
|
||||||
|
], targetPowerPickPath)
|
||||||
|
move_first_existing([
|
||||||
|
f"{agent_build_path.name}/{buildPath}/ScreenshotInject.exe",
|
||||||
|
f"{agent_build_path.name}/ScreenshotInject/bin/Release/net451/ScreenshotInject.exe",
|
||||||
|
], targetScreenshotInjectPath)
|
||||||
|
move_first_existing([
|
||||||
|
f"{agent_build_path.name}/{buildPath}/KeylogInject.exe",
|
||||||
|
f"{agent_build_path.name}/KeylogInject/bin/Release/net451/KeylogInject.exe",
|
||||||
|
], targetKeylogInjectPath)
|
||||||
|
move_first_existing([
|
||||||
|
f"{agent_build_path.name}/{buildPath}/ExecutePE.exe",
|
||||||
|
f"{agent_build_path.name}/ExecutePE/bin/Release/net451/ExecutePE.exe",
|
||||||
|
], targetExecutePEPath)
|
||||||
|
move_first_existing([
|
||||||
|
f"{agent_build_path.name}/{buildPath}/AresInterop.dll",
|
||||||
|
f"{agent_build_path.name}/AresInterop/bin/Release/net451/AresInterop.dll",
|
||||||
|
], targetInteropPath)
|
||||||
|
if missing_optional_artifacts:
|
||||||
|
stdout_err += "\nOptional helper artifacts were not packaged:\n" + "\n".join(
|
||||||
|
f"{target}: {candidates}" for target, candidates in missing_optional_artifacts
|
||||||
|
)
|
||||||
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 +799,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 Ares.sln -c {compileType} -p:OutputType=WinExe -p:Platform=\"Any CPU\""
|
command = f"dotnet build WindowsService1/WindowsService1.csproj -c {compileType} -p:OutputType=WinExe -p:Platform=\"Any CPU\""
|
||||||
else:
|
else:
|
||||||
command = f"dotnet build Ares.sln -c {compileType} -p:DebugType=None -p:DebugSymbols=false -p:DefineConstants=\"\" -p:OutputType=WinExe -p:Platform=\"Any CPU\""
|
command = f"dotnet build WindowsService1/WindowsService1.csproj -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,
|
||||||
@@ -1011,4 +1047,3 @@ def adjust_file_name(filename, shellcode_format, output_type, adjust_filename):
|
|||||||
return original_filename + ".txt"
|
return original_filename + ".txt"
|
||||||
else:
|
else:
|
||||||
return filename
|
return filename
|
||||||
|
|
||||||
|
|||||||
BIN
agent_icons/XF-09_Ares.png
Normal file
BIN
agent_icons/XF-09_Ares.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
3
agent_icons/ares.svg
Normal file
3
agent_icons/ares.svg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="218" height="250" viewBox="0 0 218 250">
|
||||||
|
<image href="/static/XF-09_Ares.png" width="218" height="250" preserveAspectRatio="xMidYMid meet" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 198 B |
3
agent_icons/ares_dark.svg
Normal file
3
agent_icons/ares_dark.svg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="218" height="250" viewBox="0 0 218 250">
|
||||||
|
<image href="/static/XF-09_Ares.png" width="218" height="250" preserveAspectRatio="xMidYMid meet" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 198 B |
3
agent_icons/ares_light.svg
Normal file
3
agent_icons/ares_light.svg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="218" height="250" viewBox="0 0 218 250">
|
||||||
|
<image href="/static/XF-09_Ares.png" width="218" height="250" preserveAspectRatio="xMidYMid meet" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 198 B |
@@ -4,5 +4,5 @@
|
|||||||
"exclude_documentation_payload": false,
|
"exclude_documentation_payload": false,
|
||||||
"exclude_documentation_c2": false,
|
"exclude_documentation_c2": false,
|
||||||
"exclude_agent_icons": false,
|
"exclude_agent_icons": false,
|
||||||
"remote_images": {"ares" :"ghcr.io/aryma-f4/ares-mythic:multiarch-fixed-v2"}
|
"remote_images": {"ares" :"ghcr.io/aryma-f4/ares-mythic:amd64-fixed-v5"}
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ chapter = true
|
|||||||
weight = 100
|
weight = 100
|
||||||
+++
|
+++
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
|
|||||||
3
documentation-payload/ares/ares_dark.svg
Normal file
3
documentation-payload/ares/ares_dark.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 18 KiB |
3
documentation-payload/ares/ares_light.svg
Normal file
3
documentation-payload/ares/ares_light.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 18 KiB |
@@ -5,7 +5,7 @@ weight = 15
|
|||||||
pre = "<b>2. </b>"
|
pre = "<b>2. </b>"
|
||||||
+++
|
+++
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user