What is the `--dbs` flag?

QuestionsQuestions8 SkillsProDec, 21 2025
0128

In sqlmap, the --dbs flag stands for "databases".

Its primary purpose is to enumerate (list) all the database names available on the database management system (DBMS) that the target web application is connected to.

Here is a breakdown of why it is used in this step:

  1. Discovery: After confirming that a URL is vulnerable to SQL injection, you don't yet know what data is stored there. The --dbs flag tells sqlmap to find the names of all the "folders" (databases) on the server.
  2. Mapping the Target: In your current output, it found acuart and information_schema. This helps you distinguish between system metadata (information_schema) and the actual application data (acuart).
  3. Next Steps: Once you have the database names using --dbs, you can then move on to list the tables within a specific database (using the -D <database_name> --tables flags).

In short: It's the command used to ask the server "What databases do you have?"

0 Comments

no data
Be the first to share your comment!