본문 바로가기

Wargame/Bandit

[ Docker ] Bandit Wargame 만들기 - 11번 문제 ( 13 / 33 )

1. Bandit11 목표

The password for the next level is stored in the file data.txt, where all lowercase (a-z) and uppercase (A-Z) letters have been rotated by 13 positions

Commands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

 

2. Bandit11 구현

# 비밀번호 root 입력 접속
ssh -oStrictHostKeyChecking=no root@localhost -p 2220

chown -R root:root /home/bandit11/.[!.]*

echo Gur cnffjbeq vf 5Gr8L4qetPEsPk8htqjhRK8XSP6x2RHh > /home/bandit11/data.txt

chmod 640 /home/bandit11/data.txt

useradd bandit12 && echo -e "5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu\n5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu" | passwd bandit12

chown bandit12:bandit11 /home/bandit11/data.txt

chmod 755 /home/bandit12

chown root:root /home/bandit12

 

3. Bandit11 문제풀의

# bandit11 로 설정한 패스워드를 입력하여 접속한다.
# IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR
ssh bandit11@localhost -p 2220

ls -la

cat data.txt | tr 'n-za-mN-ZA-M' 'a-zA-Z' | awk '{ print $4 }'