ssh bandit12@bandit.labs.overthewire.org -p 2220
#JVNBBFSmZwKKOP0XbFXOoW8chDz5yVRv
The password for the next level is stored in the file data.txt, which is a hexdump of a file that has been repeatedly compressed. For this level it may be useful to create a directory under /tmp in which you can work using mkdir. For example: mkdir /tmp/myname123. Then copy the datafile using cp, and rename it using mv (read the manpages!)
여러번 압축된 data.txt를 풀어라 (권한문제로 /tmp 에 폴더를 만들어서 작업할것)
하나도 모르겠어서 인터넷을 참고했다.
bandit12@bandit:~$ cp data.txt /tmp/jiheon ; cd /tmp/jiheon
cat data.txt | xxd -r >data
file data
# data: gzip compressed data, was "data2.bin", last modified: Thu Sep 1 06:30:09 2022, max compression, from Unix, original size modulo 2^32 575
gzip -d data
file data
#data: bzip2 compressed data, block size = 900k
이번엔 bzip2로 압축되었다고 한다.
mv data data.bz
bzip2 -d data.bz
file data
#data: gzip compressed data, was "data4.bin", last modified: Thu Sep 1 06:30:09 2022, max compression, from Unix, original size modulo 2^32 20480
또 gzip이다
mv data data.gz
gzip -d data.gz
file data
#data: POSIX tar archive (GNU)
tar
-x옵션 => 압축풀기
-f옵션 =>dlfmawlwjd
mv data data.tar
tar -xf data.tar
file data6.bin
이 과정을 계속 반복한다
# The password is wbWdlBxEir4CaE8LaPhauuOo6pwRmrDw
와