Enumerate MSSQL servers with GetUserSPNs & NMAP

Enumerate the MSSQL servers

Impacket GetUserSPNs.py

  • First let’s try to figure out the users with an SPN on an MSSQL server.

  • A Service Principal Name (SPN) is a name in Active Directory that a client uses to uniquely identify an instance of a service. An SPN combines a service name with a computer and user account to form a type of service ID.Nov 13, 2021

GetUserSPNs.py north.newyork.local/claudio.ortiz:babyboy
  • And on Maryland.local domain

Nmap

Two servers answer :

  • Yonkers.north.newyork.local

Last updated