Hack The Box - sequel关卡

在这里插入图片描述
在这里插入图片描述

TASK 1 任务 1

During our scan, which port do we find serving MySQL?
在扫描过程中,我们发现哪个端口为 MySQL 提供服务?

3306

TASK 2 任务 2

What community-developed MySQL version is the target running?
目标运行的是哪个社区开发的MySQL版本?

 MariaDB

在这里插入图片描述

TASK 3 任务 3

When using the MySQL command line client, what switch do we need to use in order to specify a login username?
使用 MySQL 命令行客户端时,我们需要使用什么开关来指定登录用户名?

-u

TASK 4 任务 4

Which username allows us to log into this MariaDB instance without providing a password?
哪个用户名允许我们在不提供密码的情况下登录此MariaDB实例?

root

TASK 5 任务5

In SQL, what symbol can we use to specify within the query that we want to display everything inside a table?
在 SQL 中,我们可以使用什么符号在查询中指定要显示表内的所有内容?

*

TASK 6 任务 6

In SQL, what symbol do we need to end each query with?
在 SQL 中,我们需要用什么符号来结束每个查询?

;

TASK 7 任务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?
此 MySQL 实例中有三个数据库,它们在所有 MySQL 实例中都是通用的。这个主机独有的第四个名字是什么?

htb

在这里插入图片描述

SUBMIT FLAG 提交标志

扫描时,发现主机down了但是根据题目可知是开启3306MySQL服务

  1. 下载MySQL工具
sudo apt update && sudo apt install mysql*
  1. 列出所有数据库
show databases;

在这里插入图片描述
3. 选择数据库

use htb;
  1. 列出htb数据库中所有表
show tables;

在这里插入图片描述
5. 列出config中的所有字段

select * from config;

在这里插入图片描述
得到flag

7b4bec00d1a39e3dd4e021ec3d915da8
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值