Apache License 2.0

项目介绍

CCob/DRSAT 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 Apache License 2.0 许可证,目前获得 312 个 Star、31 次 Fork。

仓库全名
CCob/DRSAT
开源许可证
Apache License 2.0
Star 数
312
Fork 数
31
未关闭 Issue
1

README 摘要

Disconnected RSAT Introduction Disconnected RSAT is a launcher for the official Group Policy Manager, Certificate Authority and Certificate Templates snap-in to bypass the domain joined requirement that is needed when using the official MMC snap-in. The tool works by injecting a C# library into MMC that will hook the various API calls to trick MMC into believing that the logged on user is a domain user. Hooks are…

完整内容见 GitHub 原始 README 或本页 。

常见问题

DRSAT 用什么语言开发?

主要使用 C# 编写,采用 Apache License 2.0 许可证,目前有 312 个 Star。

DRSAT 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 DRSAT 的源码?

可以直接克隆仓库:git clone https://github.com/CCob/DRSAT.git;安装与运行步骤见仓库 README。

DRSAT 最近还在维护吗?

仓库最近一次更新为 3月28日,当前有 1 个未关闭 Issue;Star 数为 312,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Disconnected RSAT - A method of running Group Policy Manager, Certificate Authority and Certificate Templates MMC snap-ins from non-domain joined machies

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
686
价值分
227
活跃状态
活跃

语言占比

C#

Release

  • 0.22024年12月27日
  • 0.12024年9月5日

贡献者

README

Disconnected RSAT

Introduction

Disconnected RSAT is a launcher for the official Group Policy Manager, Certificate Authority and Certificate Templates snap-in to bypass the domain joined requirement that is needed when using the official MMC snap-in.

The tool works by injecting a C# library into MMC that will hook the various API calls to trick MMC into believing that the logged on user is a domain user. Hooks are also placed on the NtCreateFile API to redirect file paths that would typically be resolved via DFS to a specific domain controller.

Prerequisites

Since Disconnected RSAT relies on the official snap-ins, you’ll first need to install the Windows Remote Server Administration Tools (RSAT) on the non domain joined host you’ll be operating from.

Usage

mmc.exe is marked for auto elevation, therefore launching of DRSAT.exe should be performed from an elevated command prompt that has either got a relevant TGT with correct permissions imported into the same luid session or alternatively the session has been created using runas /netonly. This will ensure that the relevant Kerberos tickets will be fetched automatically or NTLM credentials are used for outbound network connections when runas /netonly has been used.

Launching Group Policy Manager

To launch GPM to target a specific Active Directory domain, simply supply the DNS domain name of the target.

DRSAT gpo ad.target.com

Launching Certificate Authority

Whilst the certificate authority snap-in works when disconnected from the domain, template resolution doesn’t work correctly, this can be solved by launching via DRSAT

DRSAT cert ad.target.com

Launching Certificate Template editor

You can also directly edit certificate templates by using the following command

DRSAT template ad.target.com

SOCKS Proxy / TCP-Only Environments

DRSAT supports operating through TCP-only SOCKS proxies where UDP traffic (and therefore cLDAP) cannot be routed.

Domain Controller Discovery

When only a domain name is supplied, DRSAT uses a tiered discovery approach:

  1. cLDAP (UDP) - The standard DsGetDcNameW API is attempted first. This works in direct network environments but will fail through TCP-only SOCKS proxies.
  2. TCP LDAP fallback - If cLDAP fails, DRSAT falls back to connecting to LDAP://{domain}/RootDSE over TCP port 389 to resolve the serving domain controller via the dnsHostName attribute.
  3. Manual specification - If both methods fail, the user is prompted to supply the DC hostname explicitly.

This same fallback logic applies both during initial startup and at runtime when MMC snap-ins internally call DsGetDcNameW.

Explicit DC Mode

When a DC hostname is already known, it can be supplied directly. In this mode, all DsGetDcNameW calls within MMC are fully fabricated without any network calls, avoiding cLDAP entirely:

DRSAT gpo ad.target.com dc01.ad.target.com

This is the recommended approach when operating through a SOCKS proxy, as it eliminates all UDP dependencies.

Release

Precompiled binaries can be found on the Releases page

评论

暂无评论