mssqlclient.py
Connect to Microsoft SQL Server instances and execute queries. Part of the Impacket suite. More information: https://github.com/fortra/impacket.
- Connect to an MSSQL server using Windows authentication:
mssqlclient.py -windows-auth /:@
- Connect using SQL server authentication:
mssqlclient.py :@
- Connect using pass-the-hash authentication:
mssqlclient.py /@ -hashes :
- Connect using Kerberos authentication (requires valid tickets):
mssqlclient.py -k /@
- Execute a specific SQL command upon connection:
mssqlclient.py :@ -query ""
- Execute multiple SQL commands from a file:
mssqlclient.py :@ -file
- Connect to a specific database instance (default is
None):
mssqlclient.py :@ -db
- Display SQL queries before execution:
mssqlclient.py :@ -show
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
