BASH Level 4
Table of Contents
permissions, permissions, permissions
Solution
level4@5a2276bbe718:~$ ls -alh
total 32K
dr-xr-xr-x 1 root root 4.0K Apr 4 22:16 .
drwxr-xr-x 1 root root 4.0K Apr 4 22:16 ..
-rw-r--r-- 1 level4 level4 220 Apr 4 2018 .bash_logout
-rw-r--r-- 1 level4 level4 3.7K Apr 4 2018 .bashrc
-rw-r--r-- 1 level4 level4 807 Apr 4 2018 .profile
-r--r----- 1 level5 level5 25 Apr 1 21:25 flag.txt
-r-xr-x--- 1 level5 level4 209 Apr 1 21:25 print_file.sh
level4@5a2276bbe718:~$ sudo -u level5 ./print_file.sh
Please enter a file.
./print_file FILENAME
level4@5a2276bbe718:~$ sudo -u level5 ./print_file.sh flag.txt
auctf{FunKy_P3rm1ssi0nZ}