NetExec MSSQL Linked Servers

Enumerate MSSQL linked servers for lateral movement opportunities

Tool
nxc
Category
Lateral Movement / MSSQL
Platform
linux
Requires
password
Protocols
MSSQL

Open in Command Manager

Syntax

Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.

nxc mssql '<ip>' -u '<user>' -p '<password>' -M enum_links

Credential variants

The same attack using a different authentication material.

NTLM Hash requires NTLM hash

nxc mssql '<ip>' -u '<user>' -H '<hash>' -M enum_links

Examples

nxc mssql '192.168.1.56' -u 'user' -p 'password' -M enum_links

Tags

nxc mssql linked-server enumeration lateral-movement