Article Directory
Title download
–>Title download portal<
–Extraction code: 1np9
use tools
- WINHEX
- WINRAR
Title description
The subject is an encrypted compressed file
Problem solving process
Use WINRAR to open the compressed file
and find the hint in combination with the comment and file name
The password is 1314
decompressed to get four txt text files.
Notepad is opened and found that all are garbled
WINHEX using four successively open the text file
found first byte of each file comprise just PNG file header file %PNG
so they know, the source file is a PNG image, which source is placed in order to disrupt the four txt
thereby Thinking of using Python scripts to integrate source code to restore pictures
In addition, in WINHEX, you can find that the size of each text file is to 1669字节
write a Python script:
#读取字节
file1 = open("一.txt","rb")
file2 = open("生.txt","rb")
file3 = open("壹.txt","rb")
file4 = open("世.txt","rb")
#写入字节
p = open("decode.png","wb")
data = []
#循环1669次,每次依文件顺序读取
for a in range(1669):
#设定每次往后读取一个字节
i = file1.read(1)
data.append(i)
i = file2.read(1)
data.append(i)
i = file3.read(1)
data.append(i)
i = file4.read(1)
data.append(i)
for i in data:
p.write(i)
Run to get FLAG picture
Finish
Welcome to leave a message in the comment area.
Thanks for browsing