-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
124 changed files
with
5,027 additions
and
1,435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Parse Version | ||
uses: web3j/[email protected] | ||
|
@@ -21,9 +21,11 @@ jobs: | |
start: 1 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 5.0.x | ||
dotnet-version: | | ||
7.0.x | ||
5.0.x | ||
- name: Restore Dependencies | ||
run: dotnet restore | ||
|
@@ -38,11 +40,27 @@ jobs: | |
path: docfx/coverage/report/ | ||
|
||
- name: Pack | ||
run: dotnet pack --include-symbols --no-restore -c Release -p:PackageVersion=${{ steps.version.outputs.result }} -o . | ||
|
||
- name: Publish NuGet | ||
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} | ||
run: | | ||
mkdir pkgs | ||
dotnet pack --no-restore -c Release -p:PackageVersion=${{ steps.version.outputs.result }} -o ./pkgs | ||
# - name: Prep Packages | ||
# run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/BloodHoundAD/index.json" | ||
|
||
# - name: Publish to GitHub Packages | ||
# run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" | ||
# | ||
# - name: Publish NuGet | ||
# run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate | ||
|
||
- name: Publish to SpecterOps Packages | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }} | ||
run: | | ||
dotnet tool install -g sleet | ||
sleet push ./pkgs --skip-existing | ||
ghpages: | ||
name: ghpages | ||
needs: nuget | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project> | ||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>CommonLibTest</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>CommonLibTest</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"sources": [ | ||
{ | ||
"name": "feed", | ||
"type": "s3", | ||
"path": "https://s3.amazonaws.com/bloodhound-ad", | ||
"region": "us-east-1", | ||
"bucketName": "bloodhound-ad" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
namespace SharpHoundCommonLib.Enums | ||
{ | ||
public class LSAPrivileges | ||
{ | ||
public const string AssignPrimaryToken = "SeAssignPrimaryTokenPrivilege"; | ||
public const string Audit = "SeAuditPrivilege"; | ||
public const string Backup = "SeBackupPrivilege"; | ||
public const string BatchLogon = "SeBatchLogonRight"; | ||
public const string ChangeNotify = "SeChangeNotifyPrivilege"; | ||
public const string CreateGlobal = "SeCreateGlobalPrivilege"; | ||
public const string CreatePagefile = "SeCreatePagefilePrivilege"; | ||
public const string CreatePermanent = "SeCreatePermanentPrivilege"; | ||
public const string CreateSymbolicLink = "SeCreateSymbolicLinkPrivilege"; | ||
public const string CreateToken = "SeCreateTokenPrivilege"; | ||
public const string Debug = "SeDebugPrivilege"; | ||
public const string DenyBatchLogon = "SeDenyBatchLogonRight"; | ||
public const string DenyInteractiveLogon = "SeDenyInteractiveLogonRight"; | ||
public const string DenyNetworkLogon = "SeDenyNetworkLogonRight"; | ||
public const string DenyRemoteInteractiveLogon = "SeDenyRemoteInteractiveLogonRight"; | ||
public const string DenyServiceLogon = "SeDenyServiceLogonRight"; | ||
public const string EnableDelegation = "SeEnableDelegationPrivilege"; | ||
public const string Impersonate = "SeImpersonatePrivilege"; | ||
public const string IncreaseBasePriority = "SeIncreaseBasePriorityPrivilege"; | ||
public const string IncreaseQuota = "SeIncreaseQuotaPrivilege"; | ||
public const string IncreaseWorkingSet = "SeIncreaseWorkingSetPrivilege"; | ||
public const string InteractiveLogon = "SeInteractiveLogonRight"; | ||
public const string LoadDriver = "SeLoadDriverPrivilege"; | ||
public const string LockMemory = "SeLockMemoryPrivilege"; | ||
public const string MachineAccount = "SeMachineAccountPrivilege"; | ||
public const string ManageVolume = "SeManageVolumePrivilege"; | ||
public const string NetworkLogon = "SeNetworkLogonRight"; | ||
public const string ProfileSingleProcess = "SeProfileSingleProcessPrivilege"; | ||
public const string Relabel = "SeRelabelPrivilege"; | ||
public const string RemoteInteractiveLogon = "SeRemoteInteractiveLogonRight"; | ||
public const string RemoteShutdown = "SeRemoteShutdownPrivilege"; | ||
public const string Restore = "SeRestorePrivilege"; | ||
public const string Security = "SeSecurityPrivilege"; | ||
public const string ServiceLogon = "SeServiceLogonRight"; | ||
public const string Shutdown = "SeShutdownPrivilege"; | ||
public const string SyncAgent = "SeSyncAgentPrivilege"; | ||
public const string SystemEnvironment = "SeSystemEnvironmentPrivilege"; | ||
public const string SystemProfile = "SeSystemProfilePrivilege"; | ||
public const string SystemTime = "SeSystemtimePrivilege"; | ||
public const string TakeOwnership = "SeTakeOwnershipPrivilege"; | ||
public const string Tcb = "SeTcbPrivilege"; | ||
public const string TimeZone = "SeTimeZonePrivilege"; | ||
public const string TrustedCredManAccess = "SeTrustedCredManAccessPrivilege"; | ||
public const string Undock = "SeUndockPrivilege"; | ||
|
||
public static readonly string[] DesiredPrivileges = {RemoteInteractiveLogon}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace SharpHoundCommonLib.Enums | ||
{ | ||
public enum LdapErrorCodes : int | ||
{ | ||
Success = 0, | ||
Busy = 51, | ||
ServerDown = 81 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
|
||
namespace SharpHoundCommonLib.Exceptions | ||
{ | ||
public class LDAPQueryException : Exception | ||
{ | ||
public LDAPQueryException() | ||
{ | ||
} | ||
|
||
public LDAPQueryException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public LDAPQueryException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.