CmdID

CmdID / Commands

mssqlclient.py

Connect to Microsoft SQL Server instances and execute queries. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Connect to Microsoft SQL Server instances and execute queries. Part of the Impacket suite.

Connect to an MSSQL server using Windows authentication

mssqlclient.py -windows-auth domain/username:password@targetIdentify

Connect using SQL server authentication

mssqlclient.py username:password@targetIdentify

Connect using pass-the-hash authentication

mssqlclient.py domain/username@target -hashes LM_Hash:NT_HashIdentify

Connect using Kerberos authentication (requires valid tickets)

mssqlclient.py -k domain/username@targetIdentify

Execute a specific SQL command upon connection

mssqlclient.py username:password@target -query "SELECT user_name();"Identify

Execute multiple SQL commands from a file

mssqlclient.py username:password@target -file path/to/sql_file.sqlIdentify

Connect to a specific database instance (default is None)

mssqlclient.py username:password@target -db database_nameIdentify

Display SQL queries before execution

mssqlclient.py username:password@target -showIdentify