Skip to main content
  1. Posts/

Sequel

·194 words·1 min·
Tier1 Starting Point HTB Very Easy
Victor Mwai
Author
Victor Mwai

Security Analyst || CTF player

Isaiah 6:8

Table of Contents

Introduction
#

Untitled.jpg

Task 1
#

During our scan, which port do we find serving MySQL?

image.png

3306

Task 2
#

What community-developed MySQL version is the target running?

image.png

MariaDB

Task 3
#

When using the MySQL command line client, what switch do we need to use in order to specify a login username?

image.png

-u from Mysql

Task 4
#

Which username allows us to log into this MariaDB instance without providing a password?

image.png

root

Task 5
#

In SQL, what symbol can we use to specify within the query that we want to display everything inside a table?

image.png

Task 6
#

In SQL, what symbol do we need to end each query with?

image.png

;

Task 7
#

There are three databases in this MySQL instance that are common across all MySQL instances. What is the name of the fourth that’s unique to this host?

image.png

htb

To get the root flag, we had to enumerate the htb box as shown below and we found our flag.

We have two tables, users and config.

image.png

Selecting the data in users, we found nothing of interest, aside form the users

image.png

But for the config table, we found our flag

image.png

Related

Appointment
·255 words·2 mins
Tier1 Starting Point HTB Very Easy
Waiting on the line.
Reedemer
·225 words·2 mins
Tier0 Starting Point HTB Very Easy
Reedeming yourself
Dancing
·324 words·2 mins
Tier0 Starting Point HTB Very Easy
Only the flexible to dance.