很好的色彩呃?BUUCTF在线评测
给出了pass.gif图片。
选取颜色,分析颜色的十六进制的值,最后两位的值是不同的。
如:8b8b61,8b8b70等
取出最后两位:
6161706a6573
二进制转化为ascii
'aapjes'
一路到底BUUCTF在线评
30+MB的压缩包,里头很多txt文档。点开start
20555 : The next is a8242a234560a0d3cf121864ee34d7fb.txt
里头有一串20555(十六进制504b),然后标注了下个txt文档
第二位文本首部字符串为772,十六进制是0304
需要反应出来 504b 0304 是zip的头
接下来利用python将各个txt文档中的代码提出来。
start = open(current_path + "start.txt","r")
zipfile = open(".\\1.zip","wb")
content = start.read()
while True:
num = re.findall(r"^[0-9]+",content)[0]
zipfile.write((int(num)).to_bytes(2, byteorder = 'big'))
filename = re.findall(r" ([A-Za-z0-9.]+)$",content)
if filename:
nextfile = open(current_path + filename[0],"r")
content = nextfile.read()
nextfile.close()
else:
break
print(content)
start.close()
zipfile.close()
zip文件有密码,所以要破解。
里头是一个png文件。
修改头,为png的头FF D8 FF E0