풀이
압축파일이 겹겹히 압축되어있는 것으로 추정된다
rcity10@f5532245be95:~$ ls
flag.txt
rcity10@f5532245be95:~$ mkdir /tmp/20240331
rcity10@f5532245be95:~$ cd /tmp/20240331
rcity10@f5532245be95:/tmp/20240331$ ls
rcity10@f5532245be95:/tmp/20240331$ cp /home/rcity10/flag.txt .
rcity10@f5532245be95:/tmp/20240331$ ls
flag.txt
rcity10@f5532245be95:/tmp/20240331$ 7z x flag.txt
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU DO-Regular (306F2),ASM,AES-NI)
Scanning the drive for archives:
1 file, 410 bytes (1 KiB)
Extracting archive: flag.txt
--
Path = flag.txt
Type = 7z
Physical Size = 410
Headers Size = 138
Method = LZMA2:12
Solid = -
Blocks = 1
Everything is Ok
Size: 332
Compressed: 410
rcity10@f5532245be95:/tmp/20240331$ ls
flag.txt flag.xyz.zzz.abc
rcity10@f5532245be95:/tmp/20240331$ file flag.xyz.zzz.abc
flag.xyz.zzz.abc: Zip archive data, at least v2.0 to extract, compression method=deflate
rcity10@f5532245be95:/tmp/20240331$ unzip flag.xyz.zzz.abc
Archive: flag.xyz.zzz.abc
inflating: flag.xyz.zzz
rcity10@f5532245be95:/tmp/20240331$ ls
flag.txt flag.xyz.zzz flag.xyz.zzz.abc
rcity10@f5532245be95:/tmp/20240331$ file flag.xyz.zzz
flag.xyz.zzz: gzip compressed data, was "flag.xyz", last modified: Wed Mar 6 08:04:14 2024, from Unix, original size modulo 2^32 10240
rcity10@f5532245be95:/tmp/20240331$ gzip flag.xyz.zzz
rcity10@f5532245be95:/tmp/20240331$ ls
flag.txt flag.xyz.zzz.abc flag.xyz.zzz.gz
rcity10@f5532245be95:/tmp/20240331$ gzip -d flag.xyz.zzz.gz
rcity10@f5532245be95:/tmp/20240331$ ls
flag.txt flag.xyz.zzz flag.xyz.zzz.abc
rcity10@f5532245be95:/tmp/20240331$ file flag.xyz.zzz
flag.xyz.zzz: gzip compressed data, was "flag.xyz", last modified: Wed Mar 6 08:04:14 2024, from Unix, original size modulo 2^32 10240
rcity10@f5532245be95:/tmp/20240331$ mv flag.xyz.zzz flag.xyz.zzz.gz
rcity10@f5532245be95:/tmp/20240331$ gzip -d flag.xyz.zzz.gz
rcity10@f5532245be95:/tmp/20240331$ ls
flag.txt flag.xyz.zzz flag.xyz.zzz.abc
rcity10@f5532245be95:/tmp/20240331$ ls
flag.txt flag.xyz.zzz flag.xyz.zzz.abc
rcity10@f5532245be95:/tmp/20240331$ file flag.xyz.zzz
flag.xyz.zzz: POSIX tar archive (GNU)
rcity10@f5532245be95:/tmp/20240331$ tar -xvf flag.xyz.zzz
flag.txt
rcity10@f5532245be95:/tmp/20240331$ ls
flag.txt flag.xyz.zzz flag.xyz.zzz.abc
rcity10@f5532245be95:/tmp/20240331$ file flag.txt
flag.txt: ASCII text
rcity10@f5532245be95:/tmp/20240331$ cat flag.
cat: flag.: No such file or directory
rcity10@f5532245be95:/tmp/20240331$ cat flag.txt
flag: k3G8q2L5uX6r9C7b1H4
'rcity' 카테고리의 다른 글
rcity12 Wirte-Up (0) | 2024.04.01 |
---|---|
rcity11 Write-Up (0) | 2024.04.01 |
rcity9 Write-Up (1) | 2024.03.31 |
rcity8 Write-Up (1) | 2024.03.31 |
rcity7 Write-Up (1) | 2024.03.31 |