> 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/james-server-4555-119-110.md).

# James Server - 4555/119/110

### 119 端口 - NNTP

> 119 端口使用网络新闻传输协议（NNTP）服务。该服务器运行着 Apache James 的一个实例，这是一个邮件和新闻服务器。使用以下命令连接 `netcat`，但未找到相关信息。

```bash
nc 10.10.10.51 119
```

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

### 4555 端口 - 远程管理工具

> 在远程管理场景中，它可被利用来访问控制面板或与目标机器上的远程服务交互。扫描它以检查其是否开放以及承载的是什么服务很重要。

通过 Telnet 连接到 James 管理面板：

```bash
telnet 10.10.10.51 4555
```

<figure><img src="/files/5184ef4c8a76a1f63a458c780b06fcc5595b497f" alt=""><figcaption></figcaption></figure>

找到默认凭据：

* **用户名** : root
* **密码** : root

<figure><img src="/files/272979053826f0bdef7ef56df1efce6d0080128c" alt=""><figcaption></figcaption></figure>

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

登录后，James 管理面板允许使用 `listusers` 命令枚举用户。发现了五个用户：

* `用户：james`
* `用户：thomas`
* `用户：john`
* `用户：mindy`
* `用户：mailadmin`

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

该 `setpassword` 命令可以更改用户密码，从而可以通过 110 端口上的 POP3 访问邮箱。请更改每个用户的密码：

```ada
setpassword james james
setpassword thomas thomas
setpassword john john
setpassword mindy mindy
setpassword mailadmin mailadmin
```

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

### 110 端口 - POP3

> 110 端口是用于 **POP3** （邮局协议第 3 版）。电子邮件客户端使用此协议从服务器检索邮件。

通过 Telnet 连接到 POP3 服务：

<pre class="language-bash"><code class="lang-bash"><strong>telnet 10.10.10.51 110
</strong></code></pre>

使用以下命令登录：

```ada
USER <user>
PASS <password>
```

使用以下命令列出邮件： `list` 命令。

在 `james` 和 `thomas` 的邮箱中没有邮件。

<figure><img src="/files/7687c87a044f577631668340eb5718fe45ac119e" alt=""><figcaption></figcaption></figure>

不过， `john` 邮箱中有一封邮件，可使用 `retr 1`命令检索。该邮件包含以下内容：

> John，
>
> 你能在允许 Mindy 加入该计划之前限制她的访问权限吗？另外，请确保向她发送一个临时密码，这样她就可以登录她的账户。
>
> 先谢谢了。
>
> 此致，/ James

<figure><img src="/files/4a22012d299612e93702e2fdf3386e4ea8c29d3d" alt=""><figcaption></figcaption></figure>

这表明 `mindy` 用户在邮箱中有凭据。找到以下信息：

* **用户名** : mindy
* **密码** : P\@55W0rd1!2@

<div data-full-width="true"><figure><img src="/files/5ffb9fa774e35e076fff9f92b1282fc17a8c6196" alt=""><figcaption></figcaption></figure></div>


---

# 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/james-server-4555-119-110.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.
