左耳的博客

设置背景图片

TPLink 备份文件bin文件解析

TPLink 备份文件bin文件解析
from Crypto.Cipher import DES from hashlib import md5 key = '\x47\x8D\xA5\x0B\xF9\xE3\xD2\xCF' crypto = DES.new( key, DES.MODE_ECB ) data = open('config.bin', 'rb').read() data_decrypted = crypto.decrypt( data ).rstrip('\0') assert data_decrypted[:16] == md5(data_decrypted[16:]).digest() open('con...