> 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/cms/wordpress-cms-exploitation/situation-information-leakage-blockycore.jar.md).

# 场景 - 信息泄露（BlockyCore.jar）

<figure><img src="/files/7e40125fff4500545543740ee858b0837954fe31" alt=""><figcaption></figcaption></figure>

**使用 Gobuster 枚举目录：**

使用 **Gobuster** 以枚举目标 Web 服务器上的目录。

```bash
gobuster dir -u http://blocky.htb/ -w /usr/share/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt -t 100
```

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

一个名为 **plugins** 的目录被发现。

<figure><img src="/files/17a3e82ff407de080d118732efdbdd3a6497f52b" alt=""><figcaption></figcaption></figure>

**下载并提取 BlockyCore.jar：**

下载 **BlockyCore.jar**，这似乎是一个自定义插件，然后将其提取出来。

```java
jar xf BlockyCore.jar
```

#### 反编译 BlockyCore.class

提取的内容包括 **BlockyCore.class**。使用 **javap** 进行反编译以检查内容。

```bash
javap -c BlockyCore.class
```

找到了一组数据库凭据：

* **localhost**
* **root**
* **8YsqfCTnvxAUeduzjNSXe22**

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

#### 通过 phpMyAdmin 访问数据库

使用提取出的凭据，登录到 **phpMyAdmin** 并找到一个包含用户的数据库表 **notch**.

<figure><img src="/files/fc17349b3df224c8535f925d8fd511799d75b538" 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/cms/wordpress-cms-exploitation/situation-information-leakage-blockycore.jar.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.
