[OverTheWire] Bandit Level 2 -> Level 3

King's meow·2023년 11월 9일

[Linux] 리눅스 공부

목록 보기
3/17
post-thumbnail

🤔 문제

Level Goal

The password for the next level is stored in a file called spaces in this filename located in the home directory

✅ 풀이

cat 'file name'
cat file\ name

bandit2@bandit:~$ ls
spaces in this filename                                                 
bandit2@bandit:~$ ls -al                                               
total 24                                                               
drwxr-xr-x  2 root    root    4096 Oct  5 06:19 .                       
drwxr-xr-x 70 root    root    4096 Oct  5 06:20 ..                     
-rw-r--r--  1 root    root     220 Jan  6  2022 .bash_logout           
-rw-r--r--  1 root    root    3771 Jan  6  2022 .bashrc                 
-rw-r--r--  1 root    root     807 Jan  6  2022 .profile               
-rw-r-----  1 bandit3 bandit2   33 Oct  5 06:19 spaces in this filename 
bandit2@bandit:~$ cat 'spaces in this filename'                         
aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG                                       
bandit2@bandit:~$ cat spaces\ in\ this\ filename                       
aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG

bandit2 : aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG

profile
백엔드 개발자가 되고 싶은 응애

0개의 댓글