Update bruteforce_crypt15.py

This commit is contained in:
KnugiHK
2025-05-08 00:51:09 +08:00
parent 907fe4aa91
commit 0681661660

View File

@@ -26,11 +26,11 @@ def _extract_encrypted_key(keyfile):
return _generate_hmac_of_hmac(key_stream)
key = open("encrypted_backup.key", "rb").read()
database = open("wa.db.crypt15", "rb").read()
main_key, hex_key = _extract_encrypted_key(key)
for i in range(100):
if __name__ == "__main__":
key = open("encrypted_backup.key", "rb").read()
database = open("wa.db.crypt15", "rb").read()
main_key, hex_key = _extract_encrypted_key(key)
for i in range(100):
iv = database[i:i+16]
for j in range(100):
cipher = AES.new(main_key, AES.MODE_GCM, iv)
@@ -46,4 +46,4 @@ for i in range(100):
print(db_compressed[:10])
exit()
print("Not found! Try to increase maximum search.")
print("Not found! Try to increase maximum search.")