Path: blob/master/documentation/modules/post/multi/gather/fetchmailrc_creds.md
25493 views
Vulnerable Application
Post module to obtain credentials saved for IMAP, POP and other mail retrieval protocols in fetchmail's .fetchmailrc.
This file is kept in user's home directories to configure fetchmail, but contains cleartext credentials.
Example fetchmailrc file
Example documentation can be found in the fetchmail handbook: https://docs.freebsd.org/doc/6.0-RELEASE/usr/share/doc/handbook/mail-fetchmail.html#:~:text=fetchmailrc serves as an example,user on the local system.
Verification Steps
Start msfconsole
Get a shell on a system
Do:
use post/multi/gather/fetchmailrc_credsDo:
set session [session]Do:
runIf any
.fetchmailrcfiles exist with credentials, they will be read and stored into a loot file.