# Weaponizing Windows Pt-1

Lets assume you have an IP address `10.129.208.61,` Domain `absolute.htb,` and Domain Controller `dc.absolute.htb.` \
You want to run SharpHound to collect data for Bloodhound. Twist is there is only kerberos authentication. We can use our Windows VM to do this easily.

1\) Setup the DNS. \
The DNS points to the `dc.absolute.htb`

<figure><img src="https://3517022440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AiL05qubQhf0RoEOXWw%2Fuploads%2FbaxcLXyyIKMbZbTzGMce%2Fimage.png?alt=media&#x26;token=6503a5ba-d53c-4beb-83b5-20da49d49ffc" alt=""><figcaption><p>DNS Setting</p></figcaption></figure>

2\) Set up Host File\
Path => `C:\Windows\System32\drivers\etc\hosts`\
Append the IP and host names.

<figure><img src="https://3517022440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AiL05qubQhf0RoEOXWw%2Fuploads%2FEcEiGvleMk3TnuLCPOf5%2Fimage.png?alt=media&#x26;token=70a47211-0da4-40e4-bf15-14c9f45c4d4a" alt=""><figcaption><p>IP And Host name in Hosts file</p></figcaption></figure>

3\) Create the Ticket\
Command => `.\Rubeus.exe asktgt /enctype:AES256 /user:<username> /password:<password> /domain:absolute.htb /dc:dc.absolute.htb /ptt`<br>

<figure><img src="https://3517022440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AiL05qubQhf0RoEOXWw%2Fuploads%2F10kDO65bhCbSuplDFGpl%2Fimage.png?alt=media&#x26;token=46d3cdda-b9d9-459b-94f7-eb3c11dd0e4d" alt=""><figcaption><p>Running Rubeus to get the ticket</p></figcaption></figure>

4\) Run SharpHound\
Command => `. .\SharpHound.ps1; Invoke-BloodHound -Domain absolute.htb`\
After a while we do get the zip file! :tada:

<figure><img src="https://3517022440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AiL05qubQhf0RoEOXWw%2Fuploads%2FaLLY3NwLGX1r0NLKTAP8%2Fimage.png?alt=media&#x26;token=e633644d-1404-4ad5-9429-04d0ac8c6a21" alt=""><figcaption><p>Running SharpHound!</p></figcaption></figure>

<figure><img src="https://3517022440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AiL05qubQhf0RoEOXWw%2Fuploads%2FHoRysGedUYJgrip1TQ0f%2Fimage.png?alt=media&#x26;token=7be8775a-b893-4a81-9b83-2ec36e2c5054" alt=""><figcaption><p>SharpHound collects the zip!</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://notes.shashwatshah.me/windows/active-directory/weaponizing-windows/weaponizing-windows-pt-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
