[StartingPoint][Tier0]Mongod

发布于:2024-04-05 ⋅ 阅读:(136) ⋅ 点赞:(0)

Task 1

How many TCP ports are open on the machine?

(机器上打开了多少个 TCP 端口?)

Example:

$ sudo nmap -sS -T4 10.129.222.112 -p 27017,22

image.png

2

Task 2

Which service is running on port 27017 of the remote host?

(哪个服务正在远程主机的端口 27017 上运行?)

Example:

$ nmap -sV 10.129.222.112 -p 27017

image.png

MongoDB 3.6.8

Task 3

What type of database is MongoDB? (Choose: SQL or NoSQL)

(MongoDB 是什么类型的数据库? (选择:SQL 或 NoSQL))

NoSQL

Task 4

What is the command name for the Mongo shell that is installed with the mongodb-clients package?

(与 mongodb-clients 包一起安装的 Mongo shell 的命令名称是什么?)

image.png

Example:

$ mongo --host 10.129.222.112

image.png

mongo

Task 5

What is the command used for listing all the databases present on the MongoDB server?

(用于列出 MongoDB 服务器上所有数据库的命令是什么?)

image.png

show dbs

Task 6

What is the command used for listing out the collections in a database?

(用于列出数据库中的集合的命令是什么?)

Example:

>use admin # 进入DB数据库

>show collections # 查看集合

image.png

show collections

Task 7

What is the command used for dumping the content of all the documents within the collection named flag in a format that is easy to read?

(用于以易于阅读的格式转储名为 flag 的集合中的所有文档内容的命令是什么?)

PS:注意这里db是代表当前数据库名,也就是说执行以下命令之前时,必须提前use xxx进入数据库才可以

image.png

db.flag.find().pretty()

Flag

Example:

>show dbs

>use sensitive_information

>db.flag.find().pretty()

image.png

1b6e6fb359e7c40241b6d431427ba6ea


网站公告

今日签到

点亮在社区的每一天
去签到