mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
more tweaking for issue #34, it's totally not as trivial as it may look (OPENROWSET has many limitations on MSSQL >= 2005)
This commit is contained in:
@@ -3,4 +3,4 @@ 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;
|
||||
RECONFIGURE WITH OVERRIDE
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
EXEC master..sp_configure 'show advanced options', 1;
|
||||
EXEC master..sp_configure 'show advanced options',1;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
EXEC master..sp_configure 'xp_cmdshell', %ENABLE%;
|
||||
EXEC master..sp_configure 'xp_cmdshell',%ENABLE%;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
EXEC sp_configure 'show advanced options', 0;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
EXEC sp_configure 'show advanced options',0;
|
||||
RECONFIGURE WITH OVERRIDE
|
||||
|
||||
@@ -1 +1 @@
|
||||
EXEC master..sp_dropextendedproc 'xp_cmdshell';
|
||||
EXEC master..sp_dropextendedproc 'xp_cmdshell'
|
||||
|
||||
@@ -1 +1 @@
|
||||
EXEC master..sp_addextendedproc 'xp_cmdshell', @dllname='xplog70.dll';
|
||||
EXEC master..sp_addextendedproc 'xp_cmdshell', @dllname='xplog70.dll'
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
SELECT * FROM OPENROWSET('SQLOLEDB','';'%USER%';'%PASSWORD%','%STATEMENT%');
|
||||
SELECT * FROM OPENROWSET('SQLOLEDB','';'%USER%';'%PASSWORD%','%STATEMENT%')
|
||||
# SELECT * FROM OPENROWSET('SQLOLEDB','Network=DBMSSOCN;Address=;uid=%USER%;pwd=%PASSWORD%','%STATEMENT%')
|
||||
|
||||
Reference in New Issue
Block a user