Closed JClapp2017 closed 6 years ago
For MySQL all DBMS passwords are stored inside system table mysql.user
(related query: SELECT user,password FROM mysql.user
). If the current user (in most cases some dummy non-admin query user) does not have privileges to read that same table, --passwords
will fail.
Where is the system table mysql.user? how do you access it via remote sql injection?
thanks
System table mysql.user
is inside database mysql
while the table is actually called user
(mysql.user
is the database+table name). If you don't have privileges you won't be able to access it. Period.
These 2 switches go hand in hand.
I know the password already to the DBMS.
It seems from a pentesters standpoint I cant enumerate the password of the DBA admin using --passwords?
In MySQL dbs, where is the --current-users password stored? Why wont it enumerate?
Thanks