小孩哥 發表於 2008-10-8 19:35:57

详述php渗透全过程(组图)

最近一直比较关注PHP注射的东西.学习好几天了.也应该实战一下了.目标http://app.xxxx.com .一个市场调查的门户.找注射点嘛,还是要用我们可爱的搜索引擎.为什么可爱呢?一会就知道了.Go Go Go !!!!!
<br />
<br />在google中搜索php?id= site:xxx.com.意思就是说搜索XXX网站中以php?id=的URL.嘿.还真让我找到一个. http://app.xxx.com/cati/article_literature.php?id=11 .打开吓我一条,它页面本身就存在错误直接出来了绝对路径.
<br />
<br /><img src="https://img.jbzj.com/file_images/hack/200810819382678177801.jpg" border="0" onload="javascript:if(this.width>500)this.width=500" title="点击这里用新窗口浏览图片" />
<br />
<br />/data01/www/cati/article_literature.php 呵呵,人品爆发了..通过路径可以得知是台Linux主机.判断下是否可以进行注射.and 1=1返回正常,and 1=2返回错误..OK存在注射.然后我们判断数据库,不出意外应该是mysql.传说中的LMAP.环境(L=Linux M=Mysql A=Apache P=Php)
<br />
<br />http://app.xxx.com/cati/article_literature.php?id=11/* 在后面加上/*,返回正常则是Mysql.因为/*是Mysql的注释标记.
<br />
<br /><img src="https://img.jbzj.com/file_images/hack/200810819382684377802.jpg" border="0" onload="javascript:if(this.width>500)this.width=500" title="点击这里用新窗口浏览图片" />
<br />
<br />返回正常,确定是Mysql的数据库.现在我们来检测下Mysql的版本.4.0以上支持union联合查询.一般都回是4.0已经.为什么.因为Mysql是开源的数据库不收费傻子才不更新呢.呵呵.
<br />
<br />http://app.xxx.com/cati/article_literature.php?id=11 and ord(mid(version(),1,1))&gt;51/* 如我所料.果然是4.0以上的.OK.我们来爆它的字段.
<br />
<br />http://app.xxx.com/cati/article_literature.php?id=11 order by 10
<br />
<br /><img src="https://img.jbzj.com/file_images/hack/200810819382689077803.jpg" border="0" onload="javascript:if(this.width>500)this.width=500" title="点击这里用新窗口浏览图片" />
<br />
<br />返回错误,说明字段小于10

<br />










                                                <div class="cupage">上一页<strong>1</strong>2 3 4 下一页 阅读全文</div>
頁: [1]
查看完整版本: 详述php渗透全过程(组图)