MSSQL
Port: 1433
Nmap Scripts
Get information about the target SQL server
Check NTLM authentication
Find valid SQL username/password
Check if 'sa' user is configured with empty password or not
Extract all user login
Extract all SQL users hashes
Execute commands on the target machine
Metasploit
Run msfconsole
Run MSSQL Login Module
Run MSSQL Enumeration Module
Run MSSQL User Enumeration Module
Execute Command
Enumerate all target machine accounts
Linux CLI
Connect to target MSSQL Server using MSSQL CLI Python utility
Get SQL Server version details
Checking target server hostname
Extracting SQL logins
Check all the available databases
Check all sys users
Extracting SQL users hashes
Check if xp_cmdshell is enabled or not
Enable xp_cmdshell
Execute sys command using xp_cmdshell
SQLCMD
Connect to target MSSQL machine using sqlcmd utility
Check MSSQL version details
Check current database
Check current machine hostname
Extract all sys logins
Extract all available databases
Extract SQL users hashes
Get details of xp_cmdshell
Last updated