본문 바로가기

OverTheWire : Bandit Level 1 -> Level 2

@rn1p4st2023. 1. 15. 20:28
반응형

https://overthewire.org/wargames/bandit/bandit2.html

 

OverTheWire: Level Goal

We're hackers, and we are good-looking. We are the 1%. Level Goal The password for the next level is stored in a file called - located in the home directory Commands you may need to solve this level ls , cd , cat , file , du , find Helpful Reading Material

overthewire.org

Level Goal

The password for the next level is stored in a file called - located in the home directory

 

Commands you may need to solve this level

ls, cd, cat, file, du, find

 

풀이

파일 이름이 '-' 인가 보다. 이런 특수기호로 이름이 되었을 때, 어떻게 여는가에 대한 문제인 듯 하다.

 

참고 자료

https://www.webservertalk.com/dashed-filename

 

Dashed Filename - Learn How to Create/Remove/List/Read/Copy

Learn How to Create, Delete, List and Read filenames that start with a Dash using these easy Commands

www.webservertalk.com

위에 글을 읽어보면, -로 시작하는 파일이름을 cat 커맨드로 읽으려면 두가지 방법이 있다.

cat < -filename

cat ./-filename

ls 커맨드로 이름이 -인 파일이 있는 것을 확인 할 수 있다.

cat < - 커맨드로 플래그를 획득할 수 있다.

더보기

rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi

 

반응형
rn1p4st
@rn1p4st :: 푸들푸들

RECORD STUDY

목차