Last updated 6 months ago
You can use two methods to authenticate to MSSQL: windows or local (default: windows). To use local auth, add the following flag --local-auth
windows
local
--local-auth
With SMB port open
With SMB port close, add the flag -d DOMAIN
-d DOMAIN
Expected Results:
#~ nxc mssql 10.10.10.52 -u james -p 'J@m3s_P@ssW0rd!'
#~ nxc mssql 10.10.10.52 -u james -p 'J@m3s_P@ssW0rd!' -d HTB
MSSQL 10.10.10.52 1433 MANTIS [+] HTB\james:J@m3s_P@ssW0rd!
#~ nxc mssql 10.10.10.52 -u admin -p 'm$$ql_S@_P@ssW0rd!' --local-auth
MSSQL 10.10.10.52 1433 None [+] admin:m$$ql_S@_P@ssW0rd! (Pwn3d!)
#~ nxc mssql 10.10.10.52 -u admin -p 'm$$ql_S@_P@ssW0rd!' --port 1434