MySQL Pentesting
It is a relational database management system. A default port is 3306.
Enumeration
nmap --script mysql-info -p 3306 <target-ip>
nmap --script mysql-enum -p 3306 <target-ip>
nmap --script mysql-brute -p 3306 <target-ip>
nmap --script mysql-databases -p 3306 <target-ip>
nmap --script mysql-users -p 3306 <target-ip>
nmap --script mysql-* -p 3306 <target-ip>Brute Force Credentials
hydra -l username -P passwords.txt <target-ip> mysql
hydra -L usernames.txt -p password <target-ip> mysqlConfiguration Files
cat /etc/mysql/my.cnf
cat /etc/mysql/mysql.conf.d/mysqld.cnfConnect
Local
Remote
Commands
Execute from File
Basic Commands
Command Injection
System Commands
Last updated