Odbcconf.exe

type: OSBinaries
Used in Windows for managing ODBC connections

Full path

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

Commands

  1. ExecuteUser T1218.008

    Execute a DLL file using technique that can evade defensive counter measures

    odbcconf /a {REGSVR {PATH_ABSOLUTE:.dll}}

    Execute DllRegisterServer from DLL specified.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: DLL

  2. ExecuteUser T1218.008

    Execute dll file using technique that can evade defensive counter measures

    odbcconf INSTALLDRIVER "lolbas-project|Driver={PATH_ABSOLUTE:.dll}|APILevel=2"
    odbcconf configsysdsn "lolbas-project" "DSN=lolbas-project"
    

    Install a driver and load the DLL. Requires administrator privileges.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: DLL

  3. ExecuteAdministrator T1218.008

    Execute dll file using technique that can evade defensive counter measures

    odbcconf -f {PATH:.rsp}

    Load DLL specified in target .RSP file. See the Code Sample section for an example .RSP file.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

Detection

Code samples

Resources

acknowledgement: Casey Smith @subtee, Adam @Hexacorn