Odbcconf.exe

Used in Windows for managing ODBC connections

Paths

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

Commands

Execute

Execute DllRegisterServer from DLL specified.

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

Privileges: User

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

Execute

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

Use case: Execute dll file using technique that can evade defensive counter measures

Privileges: User

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

Execute

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

Use case: Execute dll file using technique that can evade defensive counter measures

Privileges: Administrator

odbcconf -f {PATH:.rsp}

Detection

Resources