Sqlserver开启xp_cmdshell

 

Sqlserver开启xp_cmdshell:

EXEC sp_configure 'show advanced options', 1;

 

RECONFIGURE WITH OVERRIDE;

 

EXEC sp_configure 'Ole Automation Procedures', 1;

 

RECONFIGURE WITH OVERRIDE;

 

EXEC sp_configure 'show advanced options', 0;

 

exec master..xp_cmdshell "whoami"

posted @ 2020-02-28 18:21  枯丿叶  阅读(766)  评论(0)    收藏  举报