18Tools
SQLmap and reading databases
Easy15MIN
When SQLmap detects an injection, it is important to understand the database structure before dumping data.
- What databases exist?
- What tables do they contain?
- What columns do the tables contain?
With these tools, a clear picture of the database is obtained, and the dump can be targeted only at critical data.
--dbs – list databases
The first step is to determine which databases are present on the server.
Example:
BASH
1sqlmap -u "http://sivu.fi/hae.php?id=1" --dbsResult:
BASH
1Available databases [3]:
2[*] information_schema
3[*] customer_registry
4[*] product_dataAll available databases.
1 / 11
Hakatemia Pro
Learn to hack — start here
Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.