MySQL (3306)
Oracle MySQL.
Port
3306 TCP
MySQL
Config File
/etc/mysql/mysql.conf.d/mysqld.cnf
Interact
You can check if it is possible to log in with user “root” and password “”.
mysql -h <IP> -P <PORT> -u <USER> -p [--skip-ssl-verify-server-cert]If ERROR 2026 (HY000) TLS/SSL error shows up, we can append --skip-ssl at the end of the command to connect to the database.
C:\xampp\mysql\bin> .\mysql.exe -u <USER> -p <PASS> -D <DB_NAME> -e "SHOW TABLES;"> show databases;
> use <DBNAME>;
> show tables;
> describe <TABLE>;
> select * from <TABLE>;
> show grants;
> select load_file(”/etc/shadow”); # with root accessDEFINITION, MANIPULATION, DATATYPE
Attacks
Last updated
Was this helpful?