DC-1 is a purposely built vulnerable lab for the purpose of gaining experience in the world of penetration testing.
5
DC-1是为增长渗透测试经验而搭建的渗透测试靶机。
6
7
It was designed to be a challenge for beginners, but just how easy it is will depend on your skills and knowledge, and your ability to learn.
8
它设计给新手,但它的难度取决于你的知识与技能、以及学习能力。
9
10
To successfully complete this challenge, you will require Linux skills, familiarity with the Linux command line and experience with basic penetration testing tools, such as the tools that can be found on Kali Linux, or Parrot Security OS.
There are multiple ways of gaining root, however, I have included some flags which contain clues for beginners.
14
有很多种提权方法,不过,我在靶机中放置了一些flag作为给新手的提示。
15
16
There are five flags in total, but the ultimate goal is to find and read the flag in root's home directory. You don't even need to be root to do this, however, you will require root privileges.
Depending on your skill level, you may be able to skip finding most of these flags and go straight for root.
20
如果你够强,你或许会跳过大多数flag直冲root。
21
22
Beginners may encounter challenges that they have never come across previously, but a Google search should be all that is required to obtain the information required to complete this challenge.
If the binary has the SUID bit set, it does not drop the elevated privileges and may be abused to access the file system, escalate or maintain privileged access as a SUID backdoor. If it is used to run sh -p, omit the -p argument on systems like Debian (<= Stretch) that allow the default sh shell to run with SUID privileges.
如果二进制文件有SUID,则它存在提升的特权,并且可能被滥用来访问文件系统、提权或维护特权访问(作为SUID后门)。 如果用于运行sh -p(请在Debian(<= Stretch)之类的系统上省略-p参数),该参数允许默认的sh 以SUID特权运行。
This example creates a local SUID copy of the binary and runs it to maintain elevated privileges. To interact with an existing SUID binary skip the first command and run the program using its original path.
本示例创建二进制文件的本地SUID副本并运行它以维护提升的特权。 要与现有的SUID二进制文件进行交互,请跳过第一个命令,并使用其原始路径运行该程序。
If the binary is allowed to run as superuser by sudo, it does not drop the elevated privileges and may be used to access the file system, escalate or maintain privileged access.
如果二进制文件被sudo允许以超级用户身份运行,它存在提升的特权,并且可以用于访问文件系统、提权或维护特权访问。
评论