mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-09 04:26:11 +02:00
96da805014
The ResolveNames endpoint used to gather emails addresses for targeting only returns 100 at a time. This updates the module to check if the search result contains all entries and when it does, it recurses into itself with a refined search prefix. All results are returned to match the original functionality instead of enumerating and halting once one that's suitable for exploitation has been found.
15 lines
564 B
Plaintext
15 lines
564 B
Plaintext
<soap:Envelope
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
|
|
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
|
|
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
|
<soap:Header>
|
|
<t:RequestServerVersion Version="Exchange2016" />
|
|
</soap:Header>
|
|
<soap:Body>
|
|
<m:ResolveNames ReturnFullContactData="true" SearchScope="ActiveDirectory">
|
|
<m:UnresolvedEntry><%= name %></m:UnresolvedEntry>
|
|
</m:ResolveNames>
|
|
</soap:Body>
|
|
</soap:Envelope>
|