DB related Commands
{: .no_toc }
Table of contents
{: .no_toc .text-delta }
TOC
{:toc}
Manually connect to MSSQL databases with credentials
Install freetds and sqsh - should be already in kali
apt-get install sqsh freetds-bin freetds-common freetds-devEdit /etc/freetds/freetds.conf, and append the following to it:
[TargetServer]
host = 192.168.1.10
port = 1433
tds version = 8.0 # to chose correct tds: http://www.freetds.org/userguide/choosingtdsprotocol.htmEdit ~./sqshrc:
\set username=sa
\set password=password
\set style=vertConnect:
Enumerate available databases:
Enable xp_cmdshell and get command execution:
Manually connect to MSSQL databases with credentials - Alternative
Use mssqlclient.py from Impacket but gives an impacket command line and not the mssql db command line
Manually connect to mysql:
Manually connect to Oracle DB:
Manually connect to most databases
Use RAZORSQL (30 days trial)
Last updated
Was this helpful?