From aff049d451ef820932328bfe9acc9b54e7b31623 Mon Sep 17 00:00:00 2001 From: coin Date: Mon, 24 Jun 2024 12:23:22 -0400 Subject: [PATCH] Added submodules --- EmpireCompiler/Core/Compiler.cs | 2 +- .../CSharpPy/CSharpPy.cs | 3599 +++++++++++++++++ .../Data/ReferenceSourceLibraries/Certify | 2 +- .../Data/ReferenceSourceLibraries/Moriarty | 2 +- .../Data/ReferenceSourceLibraries/NVNC | 2 +- .../ReferenceSourceLibraries/ProcessInjection | 2 +- .../Data/ReferenceSourceLibraries/Rubeus | 2 +- .../Data/ReferenceSourceLibraries/Seatbelt | 2 +- .../Data/ReferenceSourceLibraries/SharpDPAPI | 2 +- .../Data/ReferenceSourceLibraries/SharpSploit | 2 +- .../Data/ReferenceSourceLibraries/SharpUp | 2 +- EmpireCompiler/EmpireCompiler.csproj | 7 +- EmpireCompiler/Models/Module/GruntTask.cs | 2 +- 13 files changed, 3614 insertions(+), 14 deletions(-) create mode 100644 EmpireCompiler/Data/ReferenceSourceLibraries/CSharpPy/CSharpPy.cs diff --git a/EmpireCompiler/Core/Compiler.cs b/EmpireCompiler/Core/Compiler.cs index 614934f..a239aca 100644 --- a/EmpireCompiler/Core/Compiler.cs +++ b/EmpireCompiler/Core/Compiler.cs @@ -17,7 +17,7 @@ public static class Compiler public class CompilationRequest { public EmpireCompiler.Models.Grunts.ImplantLanguage Language { get; set; } = Models.Grunts.ImplantLanguage.CSharp; - public Platform Platform { get; set; } = Platform.AnyCpu; + public Platform Platform { get; set; } = Platform.X64; } public class CsharpCompilationRequest : CompilationRequest diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/CSharpPy/CSharpPy.cs b/EmpireCompiler/Data/ReferenceSourceLibraries/CSharpPy/CSharpPy.cs new file mode 100644 index 0000000..0643e01 --- /dev/null +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/CSharpPy/CSharpPy.cs @@ -0,0 +1,3599 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Empire/empire/server/csharp/Covenant/Data/ReferenceSourceLibraries/CSharpPy/CSharpPy.cs at main · BC-SECURITY/Empire + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ Skip to content + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + +
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ +
+ + + + BC-SECURITY  /   + Empire  /   + +
+
+ + + +
+ + +
+
+ Clear Command Palette +
+
+ + + +
+
+ Tip: + Type # to search pull requests +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type # to search issues +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type # to search discussions +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type ! to search projects +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type @ to search teams +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type @ to search people and organizations +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type > to activate command mode +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Go to your accessibility settings to change your keyboard shortcuts +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type author:@me to search your content +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type is:pr to filter to pull requests +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type is:issue to filter to issues +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type is:project to filter to projects +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type is:open to filter to open content +
+
+ Type ? for help and tips +
+
+
+ +
+ +
+
+ We’ve encountered an error and some results aren't available at this time. Type a new search or try again later. +
+
+ + No results matched your search + + + + + + + + + + +
+ + + + + Search for issues and pull requests + + # + + + + Search for issues, pull requests, discussions, and projects + + # + + + + Search for organizations, repositories, and users + + @ + + + + Search for projects + + ! + + + + Search for files + + / + + + + Activate command mode + + > + + + + Search your issues, pull requests, and discussions + + # author:@me + + + + Search your issues, pull requests, and discussions + + # author:@me + + + + Filter to pull requests + + # is:pr + + + + Filter to issues + + # is:issue + + + + Filter to discussions + + # is:discussion + + + + Filter to projects + + # is:project + + + + Filter to open issues, pull requests, and discussions + + # is:open + + + + + + + + + + + + + + + + +
+
+
+ +
+ + + + + + + + + + +
+ + +
+
+
+ + + + + + + + + + + + + + + + + + +
+ Open in github.dev + Open in a new github.dev tab + Open in codespace + + + + + + + + + + + + + + + + +

Files

t

Latest commit

 

History

History
50 lines (45 loc) · 1.51 KB

File metadata and controls

50 lines (45 loc) · 1.51 KB

Symbols

Find definitions and references for functions and other symbols in this file by clicking a symbol below or in the code.
r
  • mod
    CSharpPy
    • class
      Empire
      • func
        Agent
+
+ + + + +
+ +
+ +
+
+ +
+ +
+

Footer

+ + + + +
+
+ + + + + © 2024 GitHub, Inc. + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/Certify b/EmpireCompiler/Data/ReferenceSourceLibraries/Certify index fb297ad..f676ac9 160000 --- a/EmpireCompiler/Data/ReferenceSourceLibraries/Certify +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/Certify @@ -1 +1 @@ -Subproject commit fb297ad30476cfdba745b9062171cd7ac145a16d +Subproject commit f676ac9889e6fa63149bfdc90b6ac86537222d5d diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/Moriarty b/EmpireCompiler/Data/ReferenceSourceLibraries/Moriarty index 7ad4aa4..a052309 160000 --- a/EmpireCompiler/Data/ReferenceSourceLibraries/Moriarty +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/Moriarty @@ -1 +1 @@ -Subproject commit 7ad4aa414021cc1be0d1a781cf1b727e3d5d3c34 +Subproject commit a05230925f5ddd4bf85a7227c8ef636fb901cc53 diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/NVNC b/EmpireCompiler/Data/ReferenceSourceLibraries/NVNC index b014073..72877a5 160000 --- a/EmpireCompiler/Data/ReferenceSourceLibraries/NVNC +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/NVNC @@ -1 +1 @@ -Subproject commit b014073f8b1e8c2c61753174926b30e05846fcfc +Subproject commit 72877a5d7d81a1a3073c9b02566116a3ff5d809f diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/ProcessInjection b/EmpireCompiler/Data/ReferenceSourceLibraries/ProcessInjection index f7fd7e8..3614889 160000 --- a/EmpireCompiler/Data/ReferenceSourceLibraries/ProcessInjection +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/ProcessInjection @@ -1 +1 @@ -Subproject commit f7fd7e84bf284a319763803a6125bdc262f25247 +Subproject commit 361488902f3d3e2d1b073ee70a0a7efb0782e18a diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/Rubeus b/EmpireCompiler/Data/ReferenceSourceLibraries/Rubeus index 351cb3b..1e9fe7c 160000 --- a/EmpireCompiler/Data/ReferenceSourceLibraries/Rubeus +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/Rubeus @@ -1 +1 @@ -Subproject commit 351cb3bc04430bdf9e05eaf5cc25be7ed937d41f +Subproject commit 1e9fe7c3c2d0458f8200f248079485f3527f314f diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/Seatbelt b/EmpireCompiler/Data/ReferenceSourceLibraries/Seatbelt index 953f764..21547d7 160000 --- a/EmpireCompiler/Data/ReferenceSourceLibraries/Seatbelt +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/Seatbelt @@ -1 +1 @@ -Subproject commit 953f764a57388868bd70ee0d0bca3a2d82081c22 +Subproject commit 21547d74b0059efedee05117ed2f8f01dbbd4f55 diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/SharpDPAPI b/EmpireCompiler/Data/ReferenceSourceLibraries/SharpDPAPI index 7eecafe..ea8abe4 160000 --- a/EmpireCompiler/Data/ReferenceSourceLibraries/SharpDPAPI +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/SharpDPAPI @@ -1 +1 @@ -Subproject commit 7eecafe4ac07123bf3a70145d9ea3fc960f1f6b1 +Subproject commit ea8abe46f2cf9bd40c2c81b998676256eca705ee diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/SharpSploit b/EmpireCompiler/Data/ReferenceSourceLibraries/SharpSploit index c16931d..4bf3d2a 160000 --- a/EmpireCompiler/Data/ReferenceSourceLibraries/SharpSploit +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/SharpSploit @@ -1 +1 @@ -Subproject commit c16931ddb8cd2335e0bd26feb9aaa35f449d48db +Subproject commit 4bf3d2aa44d73b674867a1d28cc90a3bd54f100f diff --git a/EmpireCompiler/Data/ReferenceSourceLibraries/SharpUp b/EmpireCompiler/Data/ReferenceSourceLibraries/SharpUp index 8a75791..0b3f09f 160000 --- a/EmpireCompiler/Data/ReferenceSourceLibraries/SharpUp +++ b/EmpireCompiler/Data/ReferenceSourceLibraries/SharpUp @@ -1 +1 @@ -Subproject commit 8a7579174ed447181835cb82bf2ec0279e9110d0 +Subproject commit 0b3f09fd2d6f91251e62ad3702ad309f8ed5c6df diff --git a/EmpireCompiler/EmpireCompiler.csproj b/EmpireCompiler/EmpireCompiler.csproj index 4904a2c..6b694ce 100644 --- a/EmpireCompiler/EmpireCompiler.csproj +++ b/EmpireCompiler/EmpireCompiler.csproj @@ -20,9 +20,9 @@ - - + + @@ -56,7 +56,8 @@ - + + diff --git a/EmpireCompiler/Models/Module/GruntTask.cs b/EmpireCompiler/Models/Module/GruntTask.cs index 8c476de..8fb857b 100644 --- a/EmpireCompiler/Models/Module/GruntTask.cs +++ b/EmpireCompiler/Models/Module/GruntTask.cs @@ -347,7 +347,7 @@ private void CompileDotNet40() UnsafeCompile = this.UnsafeCompile, // TODO: Add debug option // OutputKind = OutputKind.ConsoleApplication, - OutputKind = OutputKind.WindowsApplication, + OutputKind = OutputKind.ConsoleApplication, Confuse = this.Confuse, // TODO: Fix optimization to work with GhostPack. It also doesn't work with Sharpire. Not sure if this actuall works with anything... Optimize = !this.ReferenceSourceLibraries.Select(RSL => RSL.Name).Contains("Seatbelt")