OverTheWire: Bandit setuid Again (Level 26 → Level 27)

C6rt4·2023년 7월 7일
0

전 문제에서 얻은 쉘방식으로 로그인을 해주고 진행하면 된다.

ls를 하면 bandit27-do가 있는데, setuid를 활용해서

./bandit27-do id

이렇게 하면 euid부분이 bandit27로 뜬다.

./bandit27-do /bin/sh

이렇게 하면 전에는 id를 입력했을 때 euid가 bandit27로 보였는데, 문제가 패치가 된것 같다.

./bandit27-do cat /etc/bandit_pass/bandit27

이렇게 해주면 된다.

https://youtube.com/@Certa6

제 유튜브 채널입니다.
도움이 됐다면, 구독 부탁합니다!
주변에 제 블로그, 유튜브를 알려주시면 감사하겠습니다~! :)

Thank you for watching the blog.
Please subscribe! I would appreciate it if you could share the blog around you.

profile
Hi, I am 2th year passionate student in the area of cyber security. I’m currently learning Offensive Security/Penetration Testing and would like to break into the field of cyber security. 07/10/2023 join Air Force "CERT" KR Air Force.

0개의 댓글