🐧 Linux (Bandit)

[OverTheWire][Linux] Bandit Level5 -> Level6

선달 2024. 12. 23. 07:59
λ°˜μ‘ν˜•

문제

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

Commands you may need to solve this level

ls , cd , cat , file , du , find

 

풀이

bandit5@bandit:~$ cd inhere

λ„ˆλ¬΄ λ§Žλ‹€!

λ¬Έμ œμ— μ •λ‹΅ 파일의 쑰건이 μ£Όμ–΄μ‘ŒμœΌλ‹ˆ 쑰건에 λ§žλŠ” 파일만 κ²€μƒ‰ν•΄λ³΄μž

 

  1. find . : ν˜„μž¬ 디렉토리와 ν•˜μœ„ 디렉토리λ₯Ό νƒμƒ‰ν•©λ‹ˆλ‹€.
  2. -size 1033c : 파일 크기가 μ •ν™•νžˆ 1033 λ°”μ΄νŠΈ(cλŠ” λ°”μ΄νŠΈ λ‹¨μœ„λ₯Ό 의미)λ₯Ό λ§Œμ‘±ν•˜λŠ” 파일만 μ°ΎμŠ΅λ‹ˆλ‹€.
bandit5@bandit:~/inhere$ find . -size 1033c

 

 

더보기

HWasnPhtq9AVKe0dmk45nxy20cvUa6EG

λ°˜μ‘ν˜•