MySQL (Port 3306)
Nmap
Local Access
if you gain access to target box and see mysql running , you can try to connect with it from target locally
Remote Access
If running as root
If Mysql is running as root and you have acces, you can run commands:
Getting all the information from inside the database
Post Enumeration
Here are list of some files to check after shell on target system to get some credentials or some juicy information that help to get root easily
MySQL server configuration file
Unix
Windows
Command History
Log Files
Finding passwords to MySQL
You might gain access to a shell by uploading a reverse-shell. And then you need to escalate your privilege.
Look into the database and see what users and passwords that are available.
Last updated