nxc-mssql
Pentest and exploit Microsoft SQL servers. tldr-pages
On several platforms
Several platforms
Search for valid credentials by trying out every combination in the specified lists of usernames and passwords
nxc mssql 192.168.178.2 --username path/to/usernames.txt --password path/to/passwords.txtIdentifyExecute the specified SQL query on the target server
nxc mssql 192.168.178.2 --username username --password password --query 'SELECT * FROM sys.databases;'IdentifyExecute the specified shell command on the target server through MSSQL
nxc mssql 192.168.178.2 --username username --password password -x whoamiIdentifyExecute the specified PowerShell command on the target server through MSSQL without retrieving output
nxc mssql 192.168.178.2 --username username --password password -X whoami --no-outputIdentifyDownload a remote file from the target server and store it in the specified location
nxc mssql 192.168.178.2 --username username --password password --get-file C:\path\to\remote_file path/to/local_fileIdentifyUpload a local file to the specified location on the target server
nxc mssql 192.168.178.2 --username username --password password --put-file path/to/local_file C:\path\to\remote_fileIdentify