본문 바로가기
Security/OverTheWire

Bandit Level 4 → Level 5 (file 명령어)

by curious week 2025. 12. 1.

문제

The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.

## 문제 요구사항
ssh bandit4@bandit.labs.overthewire.org -p 2220
ls -la
file ./*
cat ./-file07

## 왜 이 명령어를 골랐는가
숨김 파일을 찾기 위해 -a, -l 자세히 보기
file ./* 파일이나 file ./.*로 숨김 파일 현재 디렉토리의 모든 파일을 읽기
그 중 사람이 읽을 수 있는 아스키 코드를 찾아서 읽음.