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
Important
Be aware that, when trying to connect to an HTTP Server, the address on the UNC specified must not contain any dots i.e. it cannot be an IP Address
Therefore, it is always necessary to specify a hostname
As an operator usually performs any action from its own machine, which is neither a Windows host nor domain-joined, it could be difficult to be recognized by domain-joined hosts
Therefore, an authenticated attacker could use the ADIDNS (Active Directory Integrated DNS) to create a DNS record on the Domain’s DNS Zone which points to the attacker IP Address
From there, any DNS query performed by any domain-joined host for that name to the DC will resolve to the Attacker IP Address. Thus, that name can be used as the target in the following UNC
\\ATTACKER@80\test
An alternative would be to leverage the Multicast Name Resolution Protocols such as LLMNR, NBT-NS or mDNS
When a Windows host needs to resolve a name into a valid IP Address, it queries these resources in the following order →
Multicast Name Resolution Protocols - LLMNR, NBT-NS, MDNS
If a Windows Host queries a non-existent name on the Domain’s DNS Zone to the Primary DNS Server, usually the DC, it will respond back with a “No such name response” and the multicast resolution protocols will act as a fallback
As these protocols are multicast-based, the Windows victim will send subsequent name resolution queries to all hosts in the multicast range
Therefore, the attacker will also receive the query and respond back to it
The above poisoning task can be accomplished using Responder
python3 Responder.py --interface <INTERFACE>
Tha attacker must have configured an HTTP Server
At this point, the Web Client Service should be running
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