1433 - Pentesting MSSQL
Authentication with Creds
RCE in MSSQL
xp_cmdshell
First We can try to enable xp_cmdshell and then run commands easily
UNC Path Injection (xp_dirtree)
we can use xp_dirtree to authenticate to our own smb share, in this case we will be able to get the hash of the sql server user and then we can either relay the hash or crack the hash
xp_fileexist && sys.dm_os_file_exists
we can use file excist as well, and sys.dm_os_file_exists to. In SQL Server 2017 xp_fileexist was replaced by a dynamic funtion called sys.dm_os_file_exists
Last updated