Venus 11-20
Stage - lucy
flag - 11
8===AdCJ4wl8pmbhi770Xbd3===D~~
任务目标
/pwned/lucy/mission.txt
################
# MISSION 0x12 #
################
## EN ##
The password of the user elena is between the characters fu and ck
行动
ls -lah
total 48K
drwxr-x--- 2 root lucy 4.0K Jul 26 2023 .
drwxr-xr-x 1 root root 4.0K Jul 26 2023 ..
-rw-r--r-- 1 lucy lucy 220 Apr 23 2023 .bash_logout
-rw-r--r-- 1 lucy lucy 3.5K Apr 23 2023 .bashrc
-rw-r--r-- 1 lucy lucy 807 Apr 23 2023 .profile
-rw-r----- 1 root lucy 13K Jul 26 2023 file.yo
-rw-r----- 1 root lucy 31 Jul 26 2023 flagz.txt
-rw-r----- 1 root lucy 205 Jul 26 2023 mission.txt
grep -E'fu.*ck|ck.*fu'file.yo
fu4xZ5lIKYmfPLg9tck
Stage - elena
flag - 12
8===st1pTdqEQ0bvrJfWGwLA===D~~
任务目标
/pwned/elena/mission.txt
################
# MISSION 0x13 #
################
## EN ##
The user alice has her password is in an environment variable.
行动
ls -lah
total 32K
drwxr-x--- 2 root elena 4.0K Jul 26 2023 .
drwxr-xr-x 1 root root 4.0K Jul 26 2023 ..
-rw-r--r-- 1 elena elena 220 Apr 23 2023 .bash_logout
-rw-r----- 1 root elena 3.5K Jul 26 2023 .bashrc
-rw-r--r-- 1 elena elena 807 Apr 23 2023 .profile
-rw-r----- 1 root elena 31 Jul 26 2023 flagz.txt
-rw-r----- 1 root elena 189 Jul 26 2023 mission.txt
env | grep PASS
PASS=Cgecy2MY2MWbaqt
Stage - alice
flag - 13
8===Qj4NNWp8LOC96S9Rtgrk===D~~
任务目 标
/pwned/alice/mission.txt
################
# MISSION 0x14 #
################
## EN ##
The admin has left the password of the user anna as a comment in the file passwd.
行动
ls -lah
total 32K
drwxr-x--- 2 root alice 4.0K Jul 26 2023 .
drwxr-xr-x 1 root root 4.0K Jul 26 2023 ..
-rw-r--r-- 1 alice alice 220 Apr 23 2023 .bash_logout
-rw-r--r-- 1 alice alice 3.5K Apr 23 2023 .bashrc
-rw-r--r-- 1 alice alice 807 Apr 23 2023 .profile
-rw-r----- 1 root alice 31 Jul 26 2023 flagz.txt
-rw-r----- 1 root alice 231 Jul 26 2023 mission.txt
cat /etc/passwd
......
alice:x:1014:1014:w8NvY27qkpdePox:/pwned/alice:/bin/bash
......
Stage - anna
flag - 14
8===5Y3DhT66fa6Da8RpLKG0===D~~
任务目标
/pwned/anna/mission.txt
################
# MISSION 0x15 #
################
## EN ##
Maybe sudo can help you to be natalia.
行动
ls -lah
total 32K
drwxr-x--- 2 root anna 4.0K Jul 26 2023 .
drwxr-xr-x 1 root root 4.0K Jul 26 2023 ..
-rw-r--r-- 1 anna anna 220 Apr 23 2023 .bash_logout
-rw-r--r-- 1 anna anna 3.5K Apr 23 2023 .bashrc
-rw-r--r-- 1 anna anna 807 Apr 23 2023 .profile
-rw-r----- 1 root anna 31 Jul 26 2023 flagz.txt
-rw-r----- 1 root anna 152 Jul 26 2023 mission.txt
sudo -l
Matching Defaults entries for anna on venus:
env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, use_pty
User anna may run the following commands on venus:
(natalia) NOPASSWD: /bin/bash
anna@venus:~$ sudo -u natalia /bin/bash
natalia@venus:/pwned/anna$ whoami
natalia