MSSQL AD Abuse

MSSQL Enumeration / Discovery

The PowerShell module PowerUpSQL is very useful in this case.

Copy

Enumerating from the network without domain session

Enumerating from inside the domain

MSSQL Basic Abuse

Access DB

Metasploit

You can easily check for trusted links using Metasploit.

Copy

Notice that Metasploit will try to abuse only the openquery() function in MSSQL (so, if you can't execute a command with openquery() you will need to try the EXECUTE method manually to execute commands, see more below.)

Last updated