Open ayaangrover opened 2 months ago
Hey, idk if u have resolved ur issue. I have got the same one and after some researches, I found it was the same issue as the one that happened in the request_reports.py file. Here was the solution : https://github.com/MatthewKuKanich/FindMyFlipper/issues/61#issuecomment-2065003410
The solution for your issue is the same, just search in the file for the similar part and replace it with :
timestamp = int.from_bytes(data[0:4], byteorder="big") + 978307200
adj = len(data) - 88
eph_key = ec.EllipticCurvePublicKey.from_encoded_point(ec.SECP224R1(), data[5+adj:62+adj])
shared_key = ec.derive_private_key(priv, ec.SECP224R1(), default_backend()).exchange(ec.ECDH(), eph_key)
symmetric_key = sha256(shared_key + b'\x00\x00\x00\x01' + data[5+adj:62+adj])
iv = symmetric_key[16:]
decryption_key = symmetric_key[:16]
ciper_txt = data[62+adj:72+adj]
auth_tag = data[72+adj:]
When I try to decrypt the json file, i get this: Here's what shows up in my powershell: