전 문제에서 얻은 쉘방식으로 로그인을 해주고 진행하면 된다.
ls를 하면 bandit27-do가 있는데, setuid를 활용해서
./bandit27-do id
이렇게 하면 euid부분이 bandit27로 뜬다.
./bandit27-do /bin/sh
이렇게 하면 전에는 id를 입력했을 때 euid가 bandit27로 보였는데, 문제가 패치가 된것 같다.
./bandit27-do cat /etc/bandit_pass/bandit27
이렇게 해주면 된다.
제 유튜브 채널입니다.
도움이 됐다면, 구독 부탁합니다!
주변에 제 블로그, 유튜브를 알려주시면 감사하겠습니다~! :)
Thank you for watching the blog.
Please subscribe! I would appreciate it if you could share the blog around you.