Support to identify linked/cluster DBMS servers when possible
Identify linked/cluster DBMS servers when possible (e.g. MSSQL)
https://github.com/rapid7/metasploit-framework/pull/976
Proposed enhancements to MSSQL enumeration:
- Add support for linked server enumeration:
- Proposed cmd:
--links - Example method:
SELECT srvname FROM master..sysservers
- Add support for schema enumeration on linked servers:
- Proposed cmd:
-S _LINKEDSERVER_ --dbs - Example method:
SELECT name FROM _LINKEDSERVER_.master.sys.databases
- Add support for sql shell on linked servers.
More info: https://blog.netspi.com/how-to-hack-database-links-in-sql-server/
Thoughts?
@lukapusic doable... though, only MsSQL as I can see. So, introducing too many new options for just one DBMS is a coding anti-pattern in sqlmap
+1 for this. I've had lots of success pillaging through DB links.
FWIW, database links aren't limited to just MSSQL. Oracle has them as well. https://docs.oracle.com/html/E25494_01/ds_concepts002.htm