We will learn how to attack MSSQL Servers

First Loading PowerUpSQL

. .\\PowerUpSQL.ps1

Untitled

Enumerating MSSQL Instance

Get-SQLInstanceDomain

Untitled

Checking if we have access to it

Get-SQLInstanceDomain | Get-SQLConnectionTestThreaded -Verbose

Untitled

Gathering Information From the MSSQL Server

Get-SQLInstanceDomain | Get-SQLServerInfo -Verbose

Untitled

Database Links

Untitled

Checking For Database Links

Get-SQLServerLink -Instance us-mssql.us.techcorp.local -Verbose

Untitled

Crawling The MSSQL Server Links