PC端微信会将图片进行异或加密再存储,把原本可以快乐jpg的全部搞成dat格式。某一天我想在PC端想找几个有用的历史图片,发现dat没法打开,研究了一下,搞到了dat转jpg的py代码,如有侵权立删。
就这种简单方法,在百度和知乎还有人忽悠交几十块钱去买他的转化程序,互联网时代割韭菜钱也来得太快了吧?我们不能被忽悠,下面这个python3的代码,复制到你自己的编译器,只需要修改一下导入和导出的文件路径,run一下就全部自动给出来了,免费的。
但是有个条件,这玩意儿对你有用,以后就多访问望江雁的网站。请记住我的域名xianghonghuang.cn,以后还会持续出一些有用的技术贴,即使不炒股、不玩音乐、对文学没兴趣,你来我这也可以掌握真枪实弹的技术。
import os
into_path = r'E:\wendang\WeChat Files\wxid_wa8ztuagwm9q32\FileStorage\Image\2020-07' #请将想导入的dat文件的路径复制到引号里面,修改此处代码
out_path = r"E:\jpgs" #运行代码前记得修改导出路径,此处是导出到E盘的jpgs空文件夹下
def imageDecode(f, fn):
dat_read = open(f, "rb")
xo = Format(f)
out = out_path + fn + ".jpg"
print("导出文件的路径{}".format(out), end='\n\n')
png_write = open(out, "wb")
dat_read.seek(0)
for now in dat_read:
for nowByte in now:
newByte = nowByte ^ xo
png_write.write(bytes([newByte]))
dat_read.close()
png_write.close()
def findFile(f):
fsinfo = os.listdir(f)
print(fsinfo)
for fn in fsinfo:
temp_path = os.path.join(f, fn)
if os.path.isfile(temp_path):
print('导入的文件路径是{}'.format(temp_path))
fn = fn[:-4]
imageDecode(temp_path, fn)
else:
pass
def Format(f):
dat_r = open(f, "rb")
try:
a = [(0x89, 0x50, 0x4e), (0x47, 0x49, 0x46), (0xff, 0xd8, 0xff)]
for now in dat_r:
for xor in a:
i = 0
res = []
nowg = now[:3]
for nowByte in nowg:
res.append(nowByte ^ xor[i])
i += 1
if res[0] == res[1] == res[2]:
return res[0]
except:
pass
finally:
dat_r.close()
if __name__ == '__main__':
findFile(into_path)
baclofen 30 mg
online pharmacy with prescription canadian mail order prescriptions pharmacy no prescription
buy zithromax online with mastercard
cheapest prescription pharmacy: 36and6health – canada drugs coupon code
Drugs prescribing information. What side effects can this medication cause?
buy hydroxyzine
Best what you want to know about medicines. Read information here.
can i buy vermox over the counter
800 mg modafinil
deep web drug url https://mydarknetmarketlinks.com/ – dark market link dark web drug marketplace
accutane us
https://cheapestandfast.shop/# pharmacy with no prescription
combivent average cost
buy advair online
такси город телефон такси недорого.
propecia pharmacy prices
I highly advise to avoid this platform. My own encounter with it has been purely disappointment as well as doubts about scamming practices. Exercise extreme caution, or even better, look for a trustworthy service to fulfill your requirements.
flomax 04 mg
acne medication sound – acne medication kid acne medication pop
clomid price uk
dark web drug marketplace https://mydarknetmarketlinks.com/ – dark net deep web drug markets
buy retin a 0.1 online uk
I strongly recommend steer clear of this platform. The experience I had with it was nothing but disappointment and doubts about fraudulent activities. Proceed with extreme caution, or better yet, seek out an honest platform to meet your needs.
эконом такси недорого новочеркасск зеленое такси вызвать.
amoxicillin prescription
how to get vasotec prices
provigil where to buy online
darknet markets https://mydarknetmarketlinks.com/ – dark market onion darkmarket url
I strongly recommend stay away from this site. My personal experience with it was purely dismay and doubts about fraudulent activities. Exercise extreme caution, or even better, seek out a trustworthy platform to fulfill your requirements.
“Faking it until you make it“ in a behavioral health context,versus “faking it till you make it“ in a shameless and financially manipulative ploy to promote a strawman living in a house of cards for one’s financial or social gain.ラブドール おすすめ
like cooking,ラブドール エロdoing chores,
Онлайн-Психолог опсуимолог
Japanese researchers studied individual differences in autonomic stress-related nervous system activities when people were in natural versus urban settings.Most of the 650 young men in their study showed lower levels of cardiovascular stress when they were tested in the forests.海外 セックス
asthma treatment crown – asthma medication recollect inhalers for asthma unless
darknet marketplace https://mydarknetmarketlinks.com/ – the dark internet drug markets onion
dexamethasone uk
darkmarket link https://mydarknetmarketlinks.com/ – darkmarket dark web access
diflucan capsule
and insightfully about animals’ experiences.ラブドール 高級We were also fortunate that our,
darkmarket url https://mydarknetmarketlinks.com/ – dark web market darknet seiten
lasix 100mg online