> For the complete documentation index, see [llms.txt](https://dhaneshsivasamy07.gitbook.io/oscp-2022/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dhaneshsivasamy07.gitbook.io/oscp-2022/enumeration/pop3.md).

# POP3

POP3 service is a email receiving service. So every messages which is received will be available in the POP3 service. Detailed and technical explanation at [wikipedia](https://en.wikipedia.org/wiki/Post_Office_Protocol)

{% hint style="info" %}
**Requires:** valid credenials of the user is required to enumerate information from this port
{% endhint %}

## Connecting to the service

```bash
telnet 10.10.10.17 110
+OK Dovecot ready.
USER orestis
+OK
PASS kHGuERB29DNiNE                                    
+OK Logged in
```

* USER \<username>
* PASS \<password>

## Listing and Accessing the emails

```bash
LIST                                                                                                                                  
+OK 2 messages:                                                                                                                       
1 977                                                                                                                                 
2 514                                                                                                                                 
.                                                                                                                                     
RETR 1                                                                                                                                
+OK 977 octets 
<snip>
```

* LIST -> Lists the available emails with the index
* RETR \<no> -> Access the email contents
