Bandit Level 32 → Level 33
Level Goal
After all this git stuff its time for another escape. Good luck!
git과 관련된 모든 것은 끝났습니다. 탈출을 위한 시간입니다. 행운을 빌게요!
Commands you may need to solve this level
sh, man
Answer
>> id
>> man
>> bash // 아무리 입력해봐도 대문자로만 나온다.
bandit31 계정으로 로그인을 하여 bandit32 계정의 종류를 알아본다.
bandit31@bandit:~$ cat /etc/passwd
// /home/bandit32/uppershell 대문자로만 바꿔주는 쉘임을 확인.
bandit31@bandit:~$ ls -al /home/bandit32/uppershell
>> $0
// $[숫자] 입력 시 쉘 스크립트에서 파라미터의 위치 파라미터를 의미한다.
// $0을 입력 시 본 쉘(sh)를 입력한 상태가 된다.
$ id
$ bash
// bash쉘로 이동하면서 bandit33계정으로 들어간다.
$ cat /etc/bandit_pass/bandit33
// bandit33 비밀번호 획득
$ ssh bandit33@localhost
// bandit33으로 로그인
$ ls -al
$ cat README.txt
// bandit 게임이 끝났고 마무리 인사 내용
Congratulations on solving the last level of this game!
At this moment, there are no more levels to play in this game. However, we are constantly working
on new levels and will most likely expand this game with more levels soon.
Keep an eye out for an announcement on our usual communication channels!
In the meantime, you could play some of our other wargames.
If you have an idea for an awesome new level, please let us know!
Bandit33 password : c9c3199ddf4121b10cf581a98d51caee