SQLCMD:
sqlcmd -S <server URL> -U <username> -P <password>;
sqlcmd -S <server URL> -U <username> -P <password>
1> select @@version 2> go 1> select db_name(); 2> go 1> select host_name(); 2> go 1> select loginname from syslogins where sysadmin = 1; 2> go 1> select name from sys.databases; 2> go 1> select name,password_hash from master.sys.sql_logins; 2> go 1> select name, CONVERT(INT, ISNULL(value, value_in_use)) as IsConfigured FROM sys.configurations WHERE name = 'xp_cmdshell'; 2> go
Home of the tool
Use the command below to connect to your MSSQL server: mssql-cli -S <server URL> -d <database name> -U <username> -P <password>; Use the MSSQL-CLI to connect to the remote...
Run Nmap scripts to enumerate the Windows target machine MSSQL service. nmap -p1433 --script ms-sql-info 10.10.10.50 #get MYSQL info; nmap -p1433 --script ms-sql-ntlm-info --script-args mssql.ins...
Run Nmap scripts to enumerate the Windows target machine IIS service. nmap -p80 -sV --script http-enum 10.10.10.50 #get IIS info and potentially interesting folders; nmap -p80 -sV --script http-h...
smbmap command & paste
windows command & paste