π§ Linux (Bandit)
[OverTheWire][Linux] Bandit Level6 -> Level7
μ λ¬
2024. 12. 23. 08:08
λ°μν
https://overthewire.org/wargames/bandit/bandit7.html
OverTheWire: Level Goal
We're hackers, and we are good-looking. We are the 1%. <!-- Please read and accept the Rules! --> Level Goal The password for the next level is stored somewhere on the server and has all of the following properties: owned by user bandit7 owned by group ban
overthewire.org
λ¬Έμ
Level Goal
The password for the next level is stored somewhere on the server and has all of the following properties:
- owned by user bandit7
- owned by group bandit6
- 33 bytes in size
Commands you may need to solve this level
ls , cd , cat , file , du , find , grep
νμ΄
νμ¬ λλ ν 리μμ ls -al ν΄λ μ무κ²λ μλ¬λ€ (!!)
λ£¨νΈ λλ ν 리λΆν° μ°ΎμμΌνλ λ¬Έμ λ€
bandit6@bandit:~$ find / -user bandit7 -group bandit6 -size 33c 2>/dev/null
- find / : λ£¨νΈ λλ ν 리(/)λΆν° μμν΄μ λͺ¨λ νμΌκ³Ό λλ ν 리λ₯Ό μ¬κ·μ μΌλ‘ κ²μν©λλ€.
- -user bandit7 : bandit7 μ¬μ©μκ° μμ ν νμΌλ§ κ²μν©λλ€.
- -group bandit6 : bandit6 κ·Έλ£Ήμ μν νμΌλ§ κ²μν©λλ€.
- -size 33c : ν¬κΈ°κ° μ νν 33 λ°μ΄νΈμΈ νμΌλ§ μ°Ύμ΅λλ€. cλ ν¬κΈ°λ₯Ό λ°μ΄νΈ λ¨μλ‘ μ§μ ν©λλ€.
- 2>/dev/null :κΆνμ΄ μμ΄μ λ°μνλ μλ¬ λ©μμ§λ₯Ό μΆλ ₯νμ§ μλλ‘ μ¨κΉλλ€.
λ§μ§λ§ μμλ§ μ κΈ°μ΅νλ©΄ λ λ― νλ€
- 2>
- 2λ νμ€ μλ¬(standard error, stderr)λ₯Ό λνλ λλ€.
- >λ 리λλ μ μ°μ°μλ‘, μλ¬ λ©μμ§λ₯Ό λ€λ₯Έ κ³³μΌλ‘ 보λ΄κ² λ€λ λ»μ λλ€.
- /dev/null
- /dev/nullμ μ λμ€ κ³μ΄ μ΄μ체μ μμ **"μμ"**μ μλ―Ένλ νΉμ νμΌμ λλ€.
- μ¬κΈ°μ λ°μ΄ν°λ₯Ό 보λ΄λ©΄ λ°μ΄ν°λ μ¦μ μ¬λΌμ§λ©°, μ무 μΆλ ₯λ νμλμ§ μμ΅λλ€.
λ보기
morbNTDkSW6jIlUc0ymOdMaLnOlFVAaj
λ°μν