-
OverTheWire: Level Goal: Bandit Level 6 → Level 7 풀이2021 SCP Mentoring/OverTheWire: Bandit 2021. 5. 1. 14:10
문제 서버 어딘가에 저장되어 있고 다음 속성을 따른 다고 한다.
- bandit7 사용자 소유
- bandit6 그룹 소유
- 33byte 사이즈
find 명령어를 사용해주었고, find 옵션을 이용하였다.
find / -user bandit7 -group bandit6 -size 33c
- -group [groupname] : 파일 소유 group이 groupname인 파일을 찾는다.
- -size [nc] : size가 n byte인(c는 byte) 파일을 찾는다.
- -user [username] : 파일 소유 user가 username인 파일을 찾는다.
다음과 같이 찾을 수 있고, 해당 파일로 cd명령어를 통해 이동하여,
password HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs 를 얻었다.
SSH 명령어를 사용하여 bandit7로 연결하고
$ ssh bandit7@bandit.labs.overthewire.org -p 2220
password에 HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs 를 입력하였다.
'2021 SCP Mentoring > OverTheWire: Bandit' 카테고리의 다른 글
OverTheWire: Level Goal: Bandit Level 8 → Level 9 풀이 (0) 2021.05.01 OverTheWire: Level Goal: Bandit Level 7 → Level 8 풀이 (0) 2021.05.01 OverTheWire: Level Goal: Bandit Level 5 → Level 6 풀이 (0) 2021.04.26 OverTheWire: Level Goal: Bandit Level 4 → Level 5 풀이 (0) 2021.04.26 OverTheWire: Level Goal: Bandit Level 3 → Level 4 풀이 (0) 2021.04.25