Dukbong

[Linux 공부] Bandit wargames 18~19 단계 SSH 본문

Linux

[Linux 공부] Bandit wargames 18~19 단계 SSH

dukbong_dev 2025. 5. 19. 00:52
반응형
 

OverTheWire: Level Goal

We're hackers, and we are good-looking. We are the 1%. <!-- Please read and accept the Rules! --> Level Goal The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when yo

overthewire.org

18 ~ 19 단계 문제는 SSH 접속 시 바로 명령어를 실행할 수 있다는 걸 확인하는 문제입니다.

1. SSH 접속

18 ~ 19 단계 접속 비밀번호는 x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO 입니다.

하지만 지금 문제에서는 해당 서버에 bashrc에서 접속 시 바로 종료되게끔 설정되어 있기 때문에 일반 접속으로는 readme 파일을 확인할 수 없습니다.

ssh bandit18@bandit.labs.overthewire.org -p 2220 # ❌

ssh bandit18@bandit.labs.overthewire.org -p 2220 'cat readme' # 👌

결과
cGWpMaKXVwDUNgPAVJbWYuGHVn9zl3j8

 

반응형
Comments