본문 바로가기
Pwnable/Bandit

[Bandit Level 2 -> 3] 파일 이름에 공백이 있을 때

by secumark 2021. 5. 7.
728x90

 

풀어야 할 문제 : 파일 이름에 공백이 있을 때 어떻게 찾아야할까?

 

 

 

 

 

-> spaces in this file name 파일 참고

 

www.golinuxcloud.com/overview-bash-dashed-filename-directory-linux/#What_is_single_dash_-_and_double_dash_-_in_Posix

 

How to create, open, find, remove dashed filename in Linux | GoLinuxCloud

How to create, read, modify, find and remove dashed filename and directories in Linux. Open and access files & directories starting with (dash) and double dash (--)

www.golinuxcloud.com

 

 

 

appuals.com/how-to-handle-passing-filenames-with-spaces-in-bash/

 

How to Handle Passing Filenames with Spaces in Bash - Appuals.com

Linux has a default shell Bash (aka Bourne again shell) to execute commands for the system. Most programmers prefer bash over cmd because of the

appuals.com

 

-> use single or double quotation

 

 

 

 

 

그냥 cat spaces in this filename을 하면 아마 spaces, in, this, filename 이렇게 4개의 파일을 읽으라는 뜻으로 이해하는 것 같다.

 

 

 

 

 

 

방법은 두 개, 작따 or 큰따 사용

 

 

해결!

 

 

 

 

 

 

 

728x90

댓글