본문 바로가기
CTF Write-UP/overthewire.org (완료)

Bandit Level 18 → Level 19

by CPU 2021. 10. 21.
bandit 18 문제

bandit 18 문제풀이

bandit18 로 접속하게 되면 굿바이라고 뜨면서 종료가 되버린다.

따라서 다음과 같은 방법으로 접속해주면 패스워드를 찾을수 있다.

bandit17@bandit:~$ ssh bandit18@localhost -t /bin/sh
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is SHA256:98UL0ZWr85496EtCRkKlo20X3OPnyPSB5tB5RPbhczc.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/bandit17/.ssh/known_hosts).
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0640 for '/home/bandit17/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/bandit17/.ssh/id_rsa": bad permissions
bandit18@localhost's password: 
$ ls -al
total 24
drwxr-xr-x  2 root     root     4096 May  7  2020 .
drwxr-xr-x 41 root     root     4096 May  7  2020 ..
-rw-r--r--  1 root     root      220 May 15  2017 .bash_logout
-rw-r-----  1 bandit19 bandit18 3549 May  7  2020 .bashrc
-rw-r--r--  1 root     root      675 May 15  2017 .profile
-rw-r-----  1 bandit19 bandit18   33 May  7  2020 readme
$ cat readme
Iue.................
더보기

IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x

'CTF Write-UP > overthewire.org (완료)' 카테고리의 다른 글

Bandit Level 20 → Level 21  (0) 2021.10.28
Bandit Level 19 → Level 20  (0) 2021.10.23
Bandit Level 17 → Level 18  (0) 2021.10.16
Bandit Level 16 → Level 17  (0) 2021.10.16
Bandit Level 15 → Level 16  (0) 2021.10.13

댓글