Skip to main content

bandit26

·70 words·1 min· loading
Table of Contents
bandit - This article is part of a series.
Part 22: This Article

bandit25에서 얻은 쉘에서 접속해야한다

Good job getting a shell! Now hurry and grab the password for bandit27! Commands you may need to solve this level

칭찬받았다 :)

풀이
#

ls를 쳐보면, bandit27-do라는 파일이 보인다 권한이 다음과 같다

-rwsr-x---  1 bandit27 bandit26 14876 Dec  3 08:14 bandit27-do

x자리에 s가 보이는데, 이는 setuid를 뜻한다 다음과 같이, 파일 소유자의 권한을 빌릴 수 있다

bandit26@bandit:~$ ./bandit27-do whoami
bandit27

비번찾기

bandit26@bandit:~$ ./bandit27-do cat /etc/bandit_pass/bandit27
#YnQpBuifNMas1hcUFk70ZmqkhUU2EuaS
bandit - This article is part of a series.
Part 22: This Article