[OverTheWire] bandit 32 -> 33

2025. 12. 17. 19:32·bandit

After all this git stuff, it’s time for another escape. Good luck!

 

hint: sh, man

 

서버로 들어가봤습니다

┌──(miso㉿KimMDR)-[~]
└─$ ssh -p2220 bandit32@bandit.labs.overthewire.org
                         _                     _ _ _
                        | |__   __ _ _ __   __| (_) |_
                        | '_ \ / _` | '_ \ / _` | | __|
                        | |_) | (_| | | | | (_| | | |_
                        |_.__/ \__,_|_| |_|\__,_|_|\__|


                      This is an OverTheWire game server.
            More information on http://www.overthewire.org/wargames

backend: gibson-0
bandit32@bandit.labs.overthewire.org's password:
man
      ,----..            ,----,          .---.
     /   /   \         ,/   .`|         /. ./|
    /   .     :      ,`   .'  :     .--'.  ' ;
   .   /   ;.  \   ;    ;     /    /__./ \ : |
  .   ;   /  ` ; .'___,/    ,' .--'.  '   \' .
  ;   |  ; \ ; | |    :     | /___/ \ |    ' '
  |   :  | ; | ' ;    |.';  ; ;   \  \;      :
  .   |  ' ' ' : `----'  |  |  \   ;  `      |
  '   ;  \; /  |     '   :  ;   .   \    .\  ;
   \   \  ',  /      |   |  '    \   \   ' \ |
    ;   :    /       '   :  |     :   '  |--"
     \   \ .'        ;   |.'       \   \ ;
  www. `---` ver     '---' he       '---" ire.org


Welcome to OverTheWire!

If you find any problems, please report them to the #wargames channel on
discord or IRC.

--[ Playing the games ]--
.
.
.
.

  Enjoy your stay!

WELCOME TO THE UPPERCASE SHELL
>>

 

 

진입하니까 sh 상태였는데요

그냥 모든 문자를 대문자로 바꾸고 있는 이상한 쉘로 진입을 했더라구요?

WELCOME TO THE UPPERCASE SHELL
>> ls
sh: 1: LS: Permission denied
>> pwd
sh: 1: PWD: Permission denied
>> whoami
sh: 1: WHOAMI: Permission denied
>> #
>> !
sh: 2: Syntax error: newline unexpected
>> 1
sh: 1: 1: Permission denied
>> a
sh: 1: A: Permission denied
>> Z

 

 

 

그래서 이걸 알아먹게 하기 위해서 사용할 수 있는 명령어가 있습니다

$0 인데 이건 현재 쉘 이름을 의미하는 변수라서 위와 같이 모든 문자가 대문자로 변환되는 영향을 받지 않습니다

sh: 1: Z: Permission denied
>> $
sh: 1: $: Permission denied
>> $1
>> $?
sh: 1: 0: Permission denied
>> $0
$ cat /etc/bandit_pass/bandit33
tQdtbs5D5i2vJwkO8mEyYEyTL8izoeJ0

 

 

그래서.. 권한 없어서 안될까 했는데 읽어지네요

'bandit' 카테고리의 다른 글

[OverTheWire] bandit 33 -> 34  (0) 2025.12.19
[OverTheWire] bandit 31 -> 32  (0) 2025.12.13
[OverTheWire] bandit 30 -> 31  (0) 2025.12.13
[OverTheWire] bandit 29 -> 30  (0) 2025.12.12
[OverTheWire] bandit 28 -> 29  (0) 2025.12.11
'bandit' 카테고리의 다른 글
  • [OverTheWire] bandit 33 -> 34
  • [OverTheWire] bandit 31 -> 32
  • [OverTheWire] bandit 30 -> 31
  • [OverTheWire] bandit 29 -> 30
jokkams
jokkams
jokkams 님의 블로그 입니다.
  • jokkams
    jokkams 님의 블로그
    jokkams
  • 전체
    오늘
    어제
    • 분류 전체보기 (56)
      • 코드업 (8)
      • bandit (32)
      • 학교 (2)
      • 드림핵 (5)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    100제
    코드업
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
jokkams
[OverTheWire] bandit 32 -> 33
상단으로

티스토리툴바