[OverTheWire] Bandit Level 5 -> Level 6

King's meowΒ·2023λ…„ 11μ›” 9일

[Linux] λ¦¬λˆ…μŠ€ 곡뢀

λͺ©λ‘ 보기
6/17
post-thumbnail

πŸ€” 문제

Level Goal
The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:

human-readable
1033 bytes in size
not executable

βœ… 풀이

find ./* -size 1033c

find λͺ…λ Ή μ‚¬μš©λ²•

bandit5@bandit:~$ ls                                   
inhere                                                 
bandit5@bandit:~$ cd inhere/                           
bandit5@bandit:~/inhere$ ls -al                         
total 88                                               
drwxr-x--- 22 root bandit5 4096 Oct  5 06:19 .         
drwxr-xr-x  3 root root    4096 Oct  5 06:19 ..         
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere00                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere01                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere02                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere03                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere04                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere05                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere06                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere07                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere08                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere09                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere10                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere11                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere12                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere13                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere14                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere15                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere16                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere17                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere18                                             
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 maybehere19                                             
bandit5@bandit:~/inhere$ find ./* -size 1033c           
./maybehere07/.file2                                                                                          
bandit5@bandit:~/inhere$ cd maybehere07                 
bandit5@bandit:~/inhere/maybehere07$ ls -al             
total 56                                               
drwxr-x---  2 root bandit5 4096 Oct  5 06:19 .         
drwxr-x--- 22 root bandit5 4096 Oct  5 06:19 ..         
-rwxr-x---  1 root bandit5 3663 Oct  5 06:19 -file1     
-rwxr-x---  1 root bandit5 3065 Oct  5 06:19 .file1     
-rw-r-----  1 root bandit5 2488 Oct  5 06:19 -file2     
-rw-r-----  1 root bandit5 1033 Oct  5 06:19 .file2     
-rwxr-x---  1 root bandit5 3362 Oct  5 06:19 -file3     
-rwxr-x---  1 root bandit5 1997 Oct  5 06:19 .file3     
-rwxr-x---  1 root bandit5 4130 Oct  5 06:19 spaces file1                                                   
-rw-r-----  1 root bandit5 9064 Oct  5 06:19 spaces file2                                                   
-rwxr-x---  1 root bandit5 1022 Oct  5 06:19 spaces file3                                                   
bandit5@bandit:~/inhere/maybehere07$ cat .file2         
P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU

bandit6 : P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU

profile
λ°±μ—”λ“œ κ°œλ°œμžκ°€ 되고 싢은 응애

0개의 λŒ“κΈ€