Task 1
How many TCP ports are open on the machine?
(机器上打开了多少个 TCP 端口?)
Example:
$ sudo nmap -sS -T4 10.129.222.112 -p 27017,22
2
Task 2
Which service is running on port 27017 of the remote host?
(哪个服务正在远程主机的端口 27017 上运行?)
Example:
$ nmap -sV 10.129.222.112 -p 27017
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 的命令名称是什么?)
Example:
$ mongo --host 10.129.222.112
mongo
Task 5
What is the command used for listing all the databases present on the MongoDB server?
(用于列出 MongoDB 服务器上所有数据库的命令是什么?)
show dbs
Task 6
What is the command used for listing out the collections in a database?
(用于列出数据库中的集合的命令是什么?)
Example:
>use admin # 进入DB数据库
>show collections # 查看集合
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进入数据库才可以
db.flag.find().pretty()
Flag
Example:
>show dbs
>use sensitive_information
>db.flag.find().pretty()
1b6e6fb359e7c40241b6d431427ba6ea