Intro
| Dificulty | OS | Start Date | End Date | |—|—|—|—| | Very Easy | Linux | 17/05/2022 | 17/05/2022 |
Thought process
- View running services with
nmap
. - LogIn to MariaDB using root (Doesn’t need password)
Show databases
anduse
one.Select
content of the tables.
Resolution
After seeing that the machine had a MariaDB server, I tried to login as root (by default it has no password).
LogIn to MariaDB
1 $ mysql -h @IP -u root
I listed the Databases and Selected the one call it “htb”
Show Databases and Use it
1 SHOW databases; /* */ USE dName;
Once inside a Database I listed the Tables and made a simple SELECT.
Show Tables and Simple Select
1 SHOW tables; /**/ SELECT * FROM tNAME;