> For the complete documentation index, see [llms.txt](https://docs.unsafe-inline.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unsafe-inline.com/unsafe/hirens-bootcd-in-the-ad.md).

# Hiren's BootCD in the AD

### Usage of Hiren's BootCD PE for Active Directory Environments

### Introduction

"Hiren's BootCD PE (Preinstallation Environment) is a restored edition of Hiren's BootCD based on Windows 10 PE x64. Since there are no official updates after November 2012, PE version is being developed by Hiren's BootCD fans. It includes the least , best updated free tools used in Hiren's BootCD"

This document explains usage of Hiren's BootCD PE for pass-the-hash attack in domain environment . Malicious user can obtain mscachv2 hashes of domain users and nt hashes of local users using Hiren's BootCD PE. NT hashes can be used to conduct pass the hash attack, mscachv2 hashes can be cracked with offline brute force attacks.

### Attack Path - Hiren's Boot in AD

* Lateral Movement with Hiren's BootCD PE
* Getting ntlm hash of local users and conducting lateral movement.

#### Requirements

To conduct this attack paths, certain requirements are mandatory.

1. Attacker must be domain user.
2. Python is installed on Windows.(B3KC4T)
3. Hiren's BootCD PE and bootable usb.

![](/files/-MP_9f39G8Qu9Ldzn6_l)

### Proof Of Concept

#### Attack- Hiren's Boot in AD

1. For this attack I assume that ftuygun is domain user and uses B3KC4T computer.

   If there are local users that use same password on different workstations, ftuygun

   can conduct pass the hash attack in domain environment using Hiren’s BootCD.

![](/files/-MP_CWq1NZ0Hvymmg1tc)

2\. ftuygun domain user can copy SAM,SECURITY and SYSTEM files from C:\Windows\system32\config directory to his desktop (C:\Users\ftuygun\Desktop) There is no restriction on copying process because Hiren’s BootCD doesn’t run over C: driver that includes Windows OS system files.

![](/files/-MP_Cybb56Co184yhQv2)

![](/files/-MP_D8K0S94Iv7x-ocbx)

3\. Using secretsdump.py ftuygun can extract ntlm hashes of local users and Domain Cached Credentials 2 (DCC2) hashes of domain users.

![](/files/-MP_DlRKMm-W2uABwGal)

I suppose ftuygun extracted NT and DCC2 (mscachv2) hashes from the files after mkandemir had session on B3KC4T Workstation. In this case , mkandemir domain user mscachv2 hash is obtained.

![](/files/-MP_DrU48wYqM_Yfm-V7)

4\. Malicious domain user can crack mscachv2 hash. Also, he can conduct pass the hash attack to other Windows clients with hashes of local admin users. The point to pay attention is domain user doesn’t have to local admin rights for this attacks.

### Mitigation

To avoid these attacks that are explained: (pass the hash attack with nt hash, offline brute force attack for Mscachv2 hash):

* Use Bitlocker for driver that contains Windows operationg systems files.
* Assign password to BIOS.
* Disable usb ports.

<pre><code><strong># Author: Metin Yunus Kandemir
</strong></code></pre>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.unsafe-inline.com/unsafe/hirens-bootcd-in-the-ad.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
