1:下载附件,是一个.dat文件
2:
用wex,010 打开都没有看到有用的东西,改后缀.txt,png也没有用
3:查了了查,原来是FileStorage,这是微信存储数据的一个文件夹,该文件加下存放的是经过加密后微信中发送、接受的图片而形成的文件后缀为dat的文件。搞不来脚本 附上一个
# -*- coding: utf-8 -*-
# @Author : MARX·CBR
# @File : 微信Dat文件转图片.py
import os
def imageDecode(f,fn):
dat_read = open(f, "rb")
out='P:\\'+fn+".png"
png_write = open(out, "wb")
for now in dat_read:
for nowByte in now:
newByte = nowByte ^ 0x36
png_write.write(bytes([newByte]))
dat_read.close()
png_write.close()
def findFile(f):
fsinfo = os.listdir(f)
for fn in fsinfo:
temp_path = os.path.join(f, fn)
if not os.path.isdir(temp_path):
print('文件路径: {}' .format(temp_path))
print(fn)
imageDecode(temp_path,fn)
else:
...
path = r'C:\Users\输入自己微信存储路径\Data'
findFile(path)
4:用的工具,需要的可以看这个网站linda.cc。 很多人找的项目脚本源代码,需要条件才能运行
[更新]微信PC版DAT文件解密工具V0.4 - 琳迪软件(LINDI.CC)这个直接可以用
然后找到.dat的那个文件夹,~
5:得到一张图片 ,直接打开flag就在顶部
bugku{ }