# 110 995 - POP3

## Login

Basic

```
nc -nv <ip> 110
#wait for +OK response before executing another command
USER <user>
PASS <pass>
```

SSL

```
openssl s_client -connect <ip>:995 -crlf -quiet
```

## Commands

```
USER <username>
PASS <password>
STAT
LIST
CAPA
RETR <idx>
DELE <idx>
TOP <idx> <num of lines>
RSET
QUIT
```

### Retrieve an email

```
USER <username>
PASS <password>
LIST    #return a list of messages with an index
RETR <index>
```

## Enumeration

```
nmap <ip> -p <port> -sV --script "pop3*" 
```


---

# Agent Instructions: 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:

```
GET https://security-notes.gitbook.io/security-notes/networking/ports/110-995-pop3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
