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

# James Server - 4555/119/110

Apache-James-Enumeration über NNTP, Remote-Administration, POP3-Postfachzugriff, Missbrauch des Passwort-Resets und Credential-Entdeckung.

### Port 119 - NNTP

> Port 119 verwendet den Dienst Network News Transfer Protocol (NNTP). Der Server betreibt eine Instanz von Apache James, einem Mail- und News-Server. Verbinden Sie sich mit `netcat`, aber es werden keine relevanten Informationen gefunden.

```bash
nc 10.10.10.51 119
```

<figure><img src="https://2955439919-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>

### Port 4555 - Fernverwaltungstool

> Im Kontext der Fernverwaltung kann es ausgenutzt werden, um auf Bedienfelder zuzugreifen oder mit entfernten Diensten auf dem Zielrechner zu interagieren. Es ist wichtig, es zu scannen, um zu prüfen, ob es offen ist und welchen Dienst es hostet.

Verbinden Sie sich per Telnet mit dem James-Administrationspanel:

```bash
telnet 10.10.10.51 4555
```

<figure><img src="https://2955439919-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>

Es werden Standardzugangsdaten gefunden:

* **Benutzername** : root
* **Passwort** : root

<figure><img src="https://2955439919-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://2955439919-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>

Nach dem Anmelden ermöglicht das James-Admin-Panel die Aufzählung von Benutzern mit dem `listusers` Befehl. Fünf Benutzer werden entdeckt:

* `Benutzer: james`
* `Benutzer: thomas`
* `Benutzer: john`
* `Benutzer: mindy`
* `Benutzer: mailadmin`

<figure><img src="https://2955439919-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>

Das `setpassword` Befehl kann Benutzerpasswörter ändern, sodass auf die Postfächer über POP3 auf Port 110 zugegriffen werden kann. Ändern Sie das Passwort für jeden Benutzer:

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

<figure><img src="https://2955439919-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>

### Port 110 - POP3

> Port 110 ist der Standardport für **POP3** (Post Office Protocol Version 3). E-Mail-Clients verwenden dieses Protokoll, um Nachrichten von einem Server abzurufen.

Verbinden Sie sich per Telnet mit dem POP3-Dienst:

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

Melden Sie sich mit den folgenden Befehlen an:

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

Listen Sie die Nachrichten mit dem `list` Befehl auf.

Es gibt keine Nachrichten in den `james` und `thomas` Postfächern.

<figure><img src="https://2955439919-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>

Allerdings ist die `john` Postfach hat eine Nachricht, die abgerufen werden kann mit `retr 1`. Die Nachricht enthält den folgenden Text:

> John,
>
> Kannst du Mindys Zugriff einschränken, bis sie dem Programm beitreten darf? Bitte stelle außerdem sicher, dass du ihr ein temporäres Passwort sendest, damit sie sich bei ihren Konten anmelden kann.
>
> Danke im Voraus.
>
> Viele Grüße,/ James

<figure><img src="https://2955439919-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>

Dies legt nahe, dass der `mindy` Benutzer Anmeldedaten im Postfach hat. Die folgenden Informationen werden gefunden:

* **Benutzername** : mindy
* **Passwort** : P\@55W0rd1!2@

<div data-full-width="true"><figure><img src="https://2955439919-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/de/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.
