Skip to content
bytewreckPublic

About

Proof-of-Concept software for creating inbound AD forest trusts.

Resources

Stars

20 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trustify

BSD-3 License Windows 11

Trustify is a command-line tool for creating (and deleting) inbound Active Directory forest trusts with TGT delegation enabled using native Windows LSA APIs.

Usage

Trustify.exe [create|delete] ...

Create Trust

Trustify.exe create [target] [sid] [dns] [netbios] [password]
  • target: The remote domain where the trust is created (e.g. domain.com)
  • sid: SID of the trusted domain (e.g. S-1-5-21-...)
  • dns: DNS name of the trusted domain
  • netbios: NetBIOS name of the trusted domain
  • password: Trust password (plaintext)

Delete Trust

Trustify.exe delete [target] [sid]
  • target: The remote domain where the trust is deleted
  • sid: SID of the trusted domain to delete

Usage Example

Create an inbound forest trust in target.local from the domain attacker.local:

Trustify.exe create target.local S-1-5-21-1556913138-1403956553-584833181 attacker.local ATTACKER Summer2025!

Delete the trust created above:

Trustify.exe delete target.local S-1-5-21-1556913138-1403956553-584833181

Requirements

  • Windows OS
  • Run as a user with sufficient privileges (Membership in Enterprise Admins, Domain Admins in root domain, or Incoming Forest Trust Builders)
  • .NET Framework or .NET-compatible runtime for building/running

Build Instructions

To compile using Visual Studio:

  1. Open the .sln file in Visual Studio.
  2. Select build configuration (Release or Debug).
  3. Build the solution.

Or compile with dotnet CLI:

dotnet build Trustify.csproj

References

About

Proof-of-Concept software for creating inbound AD forest trusts.

Resources

Stars

20 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages