OverThewire 5->6. (정답O)

0_0·2023년 3월 22일
0

OverTheWire

목록 보기
6/22

✔ 문제풀이 해설이 상세함. 정답 스포 주의!!! ✔

계정 로그아웃 : ctrl + d
계정 로그인 : (로그아웃 상태에서) ssh 계정명@bandit.labs.overthewire.org -p 2220

[OverTheWire 5->6.]

암호는 inhere 디렉토리 어딘가에 있는 파일에 저장되어있다. => find 명령어 사용하여 탐색
파일 특징은 human-readable, 1033 bytes in size, not executable 이다. => find 명령어의 옵션 이용

find [경로] -size [사이즈] c옵션 : byte. +100c는 100byte 이상. -100c는 100byte 이하
find [경로] -readable 읽기 가능한 파일
find [경로] -executable 실행 가능한 파일
find [경로] ! -executable 실행 불가능한 파일

ls -> cd inhere -> find ./ -readable -size 1033c ! -executable -> cat ./maybehere07/.file2 find 결과로 나온 파일 열기 -> ctrl+Insert 이용하여 복사

아이디 : bandit6
암호 : P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU


0개의 댓글