The current write-up that you are viewing is an ordinary write-up.
현재 보고계신 write-up은 일반 write-up 입니다.
To comply with the rule, in this write-up, I just deal with some hints related to this challenge. Here is no correct answer and no solution.
룰을 준수하기 위해, 이 문서에서는 이 챌린지와과 관련된 몇 가지 힌트만을 다룹니다. 여기에 정답과 솔루션은 없습니다.
For the full write-up PDF please refer to the Facebook page WARGAMER.
풀 write-up PDF는 페이스북 페이지 WARGAMER를 참고하세요.
WARGAMER(Link)
Bandit Level 18 → Level 19
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 you log in with SSH.
레벨 목표
다음 레벨을 위한 패스워드는 홈 디렉토리에 "readme"에 저장되어 있다. 공교롭게도, 누군가 ".bashrc"를 조작하였고 SSH로 로그인 시 연결이 해제된다.
Commands you may need to solve this level
이 레벨을 클리어하기 위해 필요할 것으로 예상되는 명령어.
ssh, ls, cat
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 you log in with SSH.
레벨 목표
다음 레벨을 위한 패스워드는 홈 디렉토리에 "readme"에 저장되어 있다. 공교롭게도, 누군가 ".bashrc"를 조작하였고 SSH로 로그인 시 연결이 해제된다.
Commands you may need to solve this level
이 레벨을 클리어하기 위해 필요할 것으로 예상되는 명령어.
ssh, ls, cat
This challenge requires the ability to avoid basic setting of BASH shell. If you experienced ".bashrc" related settings, It will be easier.
이 챌린지는 BASH 쉘의 기본 설정을 우회하는 능력을 요구합니다. 만약 ".bashrc" 세팅과 관련된 경험이 있다면 보다 수월할 것입니다.
This is some part of the resolution procedures. I could find the flag as follow.
이것은 풀이 과정중 일부입니다. 아래와 같이 플래그를 찾을 수 있었습니다.
$■■■■■■■■20 bandit18@bandit.labs.overthewire.org
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames
bandit18@bandit.labs.overthewire.org's password:
Connected to bandit18@bandit.labs.overthewire.org.
■■■■■■■■
readme
■■■■■■■■et ./readme
Fetching /home/bandit18/./readme to readme
/home/bandit18/./readme 100% 33 0.1KB/s 00:00
■■■■
■■■■■■■■
$ ls
readme tmp
$ ■■■■ ./readme
Iue■■■7Ub■■■■■d8rA■■■■■5x
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames
bandit18@bandit.labs.overthewire.org's password:
Connected to bandit18@bandit.labs.overthewire.org.
■■■■■■■■
readme
■■■■■■■■et ./readme
Fetching /home/bandit18/./readme to readme
/home/bandit18/./readme 100% 33 0.1KB/s 00:00
■■■■
■■■■■■■■
$ ls
readme tmp
$ ■■■■ ./readme
Iue■■■7Ub■■■■■d8rA■■■■■5x