bandit lv 6,7

KJH·2022년 11월 21일

bandit

목록 보기
2/29

어려워진다

lv6

조건

  • owned by user bandit7
  • owned by group bandit6
  • 33 bytes in size

지금까지는 find를 이름으로만 찾았는데, 옵션이 너무 많다.
-size 33c -user bandit7 -group bandit6 -type f
에서 에러를 없앤다.

ssh bandit6@bandit.labs.overthewire.org -p 2220
#P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU
bandit6@bandit:~$ find / -size 33c -user bandit7 -type f -group bandit6 2>> /dev/null
#var/lib/dpkg/info/bandit7.password
cat /var/lib/dpkg/info/bandit7.password
# z7WtoNQU2XfjmMtWA8u5rN4vzqu4v99S

lv7

The password for the next level is stored in the file data.txt next to the word millionth

grep사용

ssh bandit7@bandit.labs.overthewire.org -p 2220
#z7WtoNQU2XfjmMtWA8u5rN4vzqu4v99S
cat data.txt | grep millionth
#TESKZC0XvTetK0S9xNwm25STk5iWrBvP

0개의 댓글