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

# James Server - 4555/119/110

### Porta 119 - NNTP

> A porta 119 usa o serviço Network News Transfer Protocol (NNTP). O servidor executa uma instância do Apache James, um servidor de e-mail e notícias. Conecte-se com `netcat`, mas nenhuma informação relevante é encontrada.

```bash
nc 10.10.10.51 119
```

<figure><img src="/files/6d9def9d1b1bf4837289f7fbed26737293097a66" alt=""><figcaption></figcaption></figure>

### Porta 4555 - Ferramenta de Administração Remota

> No contexto da administração remota, ele pode ser explorado para acessar painéis de controle ou interagir com serviços remotos na máquina-alvo. É importante escaneá-lo para verificar se está aberto e qual serviço ele está hospedando.

Conecte-se ao painel de administração do James via Telnet:

```bash
telnet 10.10.10.51 4555
```

<figure><img src="/files/9125837cfef656b473ef8ff7555beca029f09e23" alt=""><figcaption></figcaption></figure>

As credenciais padrão são encontradas:

* **Nome de usuário** : root
* **Senha** : root

<figure><img src="/files/9f7fea1e3f370b986a1d40210b3b68200eae640b" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1204e8301befae558befa7bc181693810afa45fb" alt=""><figcaption></figcaption></figure>

Após fazer login, o painel de administração do James permite a enumeração de usuários com o `listusers` comando. Cinco usuários são descobertos:

* `usuário: james`
* `usuário: thomas`
* `usuário: john`
* `usuário: mindy`
* `usuário: mailadmin`

<figure><img src="/files/0e67eb9de3031cc0209413fa1e84307201465922" alt=""><figcaption></figcaption></figure>

O `setpassword` comando pode alterar as senhas dos usuários para que as caixas de correio possam ser acessadas via POP3 na porta 110. Altere a senha de cada usuário:

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

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

### Porta 110 - POP3

> A porta 110 é a porta padrão usada para **POP3** (Post Office Protocol versão 3). Os clientes de e-mail usam esse protocolo para recuperar mensagens de um servidor.

Conecte-se ao serviço POP3 via Telnet:

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

Faça login com os seguintes comandos:

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

Liste as mensagens com o `list` comando.

Não há mensagens nas `james` e `thomas` caixas de correio.

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

No entanto, o `john` caixa de correio tem uma mensagem que pode ser recuperada com `retr 1`. A mensagem contém o seguinte texto:

> John,
>
> Você pode restringir o acesso da Mindy até que ela seja autorizada a entrar no programa? Além disso, certifique-se de enviar a ela uma senha temporária para que ela possa fazer login em suas contas.
>
> Obrigado desde já.
>
> Atenciosamente,/ James

<figure><img src="/files/5312a735d1111b4b2c02f8f56327696c5d561243" alt=""><figcaption></figcaption></figure>

Isso sugere que a `mindy` usuária tem credenciais na caixa de correio. As seguintes informações são encontradas:

* **Nome de usuário** : mindy
* **Senha** : P\@55W0rd1!2@

<div data-full-width="true"><figure><img src="/files/ad33b9923354ecc02e21e0fd32f81b8996212b04" 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/pt-br/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.
