Port 3306 MySQL

Install Mysql client

sudo apt install default-mysql-client

Connecting to mysql

mysql -h [IP] -u [username] -p

Enumerating with Metasploit

auxiliary/scanner/mysql/mysql_schemadump
auxiliary/scanner/mysql/mysql_sql   //can be used to run sql commands
auxiliary/scanner/mysql/mysql_hashdump

SQLITE COMMANDS

sqlite3 <database-name>
.tables
PRAGMA table_info(customers);
SELECT * FROM customers;

Last updated