MSSQL

Port: TCP/1433

Clients:

For Impacket's (often included in pentesting distros):

locate mssqlclient

Impacket's default login is NOT the Windows login, use -windows-auth

Default System Database
Description

master

Tracks all system information for an SQL server instance

model

Template database that acts as a structure for every new database created. Any setting changed in the model database will be reflected in any new database created after changes to the model database

msdb

The SQL Server Agent uses this database to schedule jobs & alerts

tempdb

Stores temporary objects

resource

Read-only database containing system objects included with SQL server

nmap command

Metasplot

module: mssql_ping

Common enumeration

from HackTricks

Last updated