mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-06-01 13:59:38 +00:00
Update bruteforce_crypt15.py
This commit is contained in:
@@ -26,11 +26,11 @@ def _extract_encrypted_key(keyfile):
|
|||||||
|
|
||||||
return _generate_hmac_of_hmac(key_stream)
|
return _generate_hmac_of_hmac(key_stream)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
key = open("encrypted_backup.key", "rb").read()
|
key = open("encrypted_backup.key", "rb").read()
|
||||||
database = open("wa.db.crypt15", "rb").read()
|
database = open("wa.db.crypt15", "rb").read()
|
||||||
main_key, hex_key = _extract_encrypted_key(key)
|
main_key, hex_key = _extract_encrypted_key(key)
|
||||||
for i in range(100):
|
for i in range(100):
|
||||||
iv = database[i:i+16]
|
iv = database[i:i+16]
|
||||||
for j in range(100):
|
for j in range(100):
|
||||||
cipher = AES.new(main_key, AES.MODE_GCM, iv)
|
cipher = AES.new(main_key, AES.MODE_GCM, iv)
|
||||||
@@ -46,4 +46,4 @@ for i in range(100):
|
|||||||
print(db_compressed[:10])
|
print(db_compressed[:10])
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
print("Not found! Try to increase maximum search.")
|
print("Not found! Try to increase maximum search.")
|
||||||
|
|||||||
Reference in New Issue
Block a user