IMAP
Source CTF and HTB Academy
Usually on port 143, 993
With the help of the Internet Message Access Protocol (IMAP), access to emails from a mail server is possible. IMAP allows online management of emails directly on the server and supports folder structures. Thus, it is a network protocol for the online management of emails on a remote server. The protocol is client-server-based and allows synchronization of a local email client with the mailbox on the server, providing a kind of network file system for emails, allowing problem-free synchronization across several independent clients.
Commands
Command | Description |
---|---|
| User's login. |
| Lists all directories. |
| Creates a mailbox with a specified name. |
| Deletes a mailbox. |
| Renames a mailbox. |
| Returns a subset of names from the set of names that the User has declared as being active or subscribed. |
| Selects a mailbox so that messages in the mailbox can be accessed. |
| Exits the selected mailbox. |
| Retrieves data associated with a message in the mailbox. |
| Prints the body and text of the message which id is specified |
| Removes all messages with the Deleted flag set. |
| Closes the connection with the IMAP server. |
Dangerous Settings
Setting | Description |
---|---|
| Enables all authentication debug logging. |
| This setting adjusts log verbosity, the submitted passwords, and the scheme gets logged. |
| Logs unsuccessful authentication attempts and their reasons. |
| Passwords used for authentication are logged and can also be truncated. |
| This specifies the username to be used when logging in with the ANONYMOUS SASL mechanism. |
Enumeration
nc -nv TARGET-IP 143
sudo nmap 10.129.14.128 -sV -p143,993 -sC
curl -k 'imaps://10.129.14.128' --user user:p4ssw0rd
curl -k 'imaps://10.129.14.128' --user cry0l1t3:1234 -v
openssl s_client -connect 10.129.14.128:imaps
Resources
Last updated