Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/post/windows/gather/exchange.md
Views: 11789
Vulnerable Application
This module will gather information from an on-premise Exchange Server running on the target machine.
Two actions are supported:
LIST
(default action): List basic information about all Exchange servers and mailboxes hosted on the target.
EXPORT
: Export and download a chosen mailbox in the form of a .PST file, with support for an optional filter keyword.
It requires that the effective Meterpreter session user be assigned to the "Organization Management" role group.
Verification Steps
Start msfconsole
Get meterpreter session on a Windows target running an Exchange Server
Do:
use post/windows/gather/exchange
Do:
set SESSION <session id>
Do:
run
Options
FILTER
Filter to use when exporting a mailbox.
See Microsoft documentation for valid values.
Unused for LIST action, optional for EXPORT action.
MAILBOX
Mailbox to export. Can be a mailbox's email address or display name.
Unused for LIST action, required for EXPORT action.
DownloadSizeThreshold
The file size of export results after which a prompt will appear to confirm the download, in MB.
Option takes a float number. Default value is 50.0.
SkipLargeDownloads
If set to true
, automatically skip downloading export results that are larger than DownloadSizeThreshold
(don't show prompt).
Set to false
by default.
Extracted data
LIST action
For every server:
Server name
Server version
Server role
For every mailbox in server:
Mailbox display name
Mailbox email addresses
Mailbox creation date
Mailbox address list membership
For every folder in mailbox:
Folder Path
Items in folder
Folder size
Newest item received date
EXPORT action
.PST file with the chosen mailbox's mail items