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

# James Server - 4555/119/110

Перечисление Apache James через NNTP, удалённое администрирование, доступ к почтовым ящикам POP3, злоупотребление сбросом пароля и поиск учётных данных.

### Порт 119 — NNTP

> Порт 119 использует службу Network News Transfer Protocol (NNTP). На сервере запущен экземпляр Apache James, почтового и новостного сервера. Подключитесь с помощью `netcat`, но никакой полезной информации не найдено.

```bash
nc 10.10.10.51 119
```

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

### Порт 4555 — инструмент удалённого администрирования

> В контексте удалённого администрирования его можно использовать для доступа к панелям управления или взаимодействия с удалёнными службами на целевой машине. Важно просканировать его, чтобы проверить, открыт ли он и какую службу он обслуживает.

Подключитесь к панели администрирования James по Telnet:

```bash
telnet 10.10.10.51 4555
```

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

Найдены учётные данные по умолчанию:

* **Имя пользователя** : root
* **Пароль** : root

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

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

После входа панель администрирования James позволяет перечислить пользователей с помощью `listusers` команды. Обнаружено пять пользователей:

* `пользователь: james`
* `пользователь: thomas`
* `пользователь: john`
* `пользователь: mindy`
* `пользователь: mailadmin`

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

Эта `setpassword` команда может изменять пароли пользователей, чтобы к почтовым ящикам можно было получить доступ по POP3 на порту 110. Измените пароль для каждого пользователя:

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

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

### Порт 110 — POP3

> Порт 110 — стандартный порт, используемый для **POP3** (Post Office Protocol версии 3). Почтовые клиенты используют этот протокол для получения сообщений с сервера.

Подключитесь к службе POP3 по Telnet:

<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="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-c1d9940d1c339a1c5b9bc44b6b8a0c43d4c8b8c7%2Fimage%20(2588).png?alt=media" alt=""><figcaption></figcaption></figure>

Однако `john` В почтовом ящике есть сообщение, которое можно получить с помощью `retr 1`. Сообщение содержит следующий текст:

> Джон,
>
> Не могли бы вы ограничить доступ Минди, пока ей не разрешат присоединиться к программе? Также убедитесь, что отправили ей временный пароль, чтобы она могла войти в свои учётные записи.
>
> Заранее спасибо.
>
> С уважением,/ Джеймс

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

Это указывает на то, что `mindy` у пользователя есть учётные данные в почтовом ящике. Найдена следующая информация:

* **Имя пользователя** : mindy
* **Пароль** : P\@55W0rd1!2@

<div data-full-width="true"><figure><img src="https://4248209978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-b30fc925aed5ccf801ef0c46bc305b96ded344c3%2Fimage%20(2590).png?alt=media" 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 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/ru/ports-and-services/james-server-4555-119-110.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.
