티스토리 뷰

Goal
The password for the next level is stored in a file called spaces in this filename located in the home directory
다음 레벨의 패스워드는 home 디렉토리의 `spaces in this filename` 파일에 저장되어 있다.
Commands you may need to solve this level
`ls` , `cd` , `cat` , `file` , `du` , `find`
Write Up
리눅스 파일에는 일반적으로 이름에 공백이 포함되어 있지 않다. 공백을 포함한 이름으로 파일을 생성하는 것은 가능하나 굳이? 하지 않는 것이 좋다.
command [options] arg1... arg2...
리눅스 명령어는 일반적으로 위와 같은 형태다. 따라서 파일명에 공백이 포함되어 있으면 하나의 파일명이 별도의 인수로 처리된다.
cat "spaces in this filename"
cat spaces\ in\ this\ filename
cat ./*
cat ./sp*'Wargame > Bandit' 카테고리의 다른 글
| Bandit Level 5 → Level 6 (0) | 2024.05.16 |
|---|---|
| Bandit Level 4 → Level 5 (0) | 2024.05.16 |
| Bandit Level 3 → Level 4 (0) | 2024.05.16 |
| Bandit Level 1 → Level 2 (0) | 2024.05.16 |
| Bandit Level 0 → Level 1 (0) | 2024.05.16 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- webgoat
- sql injection
- test
- java
- Database
- React
- Transaction
- Spring
- WarGame
- math
- DP
- Dreamhack
- askers
- sqli
- 회고
- WEB
- XSS
- Framework
- SEO
- Spring Security
- Bandit
- Misc
- JPA
- PS
- oauth2
- opengraph
- linux
- CSRF
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
글 보관함