Skip to content

Password found but doesn't work #12

@altayhunter

Description

@altayhunter

When I ran python2 crack_enmicromsg_db_\(C_version\).py it completed successfully and wrote the password to pass.txt. However, when I run tools/decrypt_db_with_password.py with this password and EnMicroMsg.db it tells me file is not a database.

I also tried using sqlcipher directly with the same results:

$ sqlcipher EnMicroMsg.db 
SQLCipher version 3.28.0 2019-04-16 19:49:53
Enter ".help" for usage hints.
sqlite> PRAGMA key = '1234567';
sqlite> PRAGMA cipher_use_hmac = OFF;
sqlite> PRAGMA cipher_page_size = 1024;
sqlite> PRAGMA kdf_iter = 4000;
sqlite> SELECT name FROM sqlite_master WHERE type='table';
Error: file is not a database

I tried setting more details, but it still fails with the same error:

sqlite> PRAGMA key = '1234567';
sqlite> PRAGMA cipher_page_size = 1024;
sqlite> PRAGMA kdf_iter = 4000;
sqlite> PRAGMA cipher_use_hmac = OFF;
sqlite> PRAGMA cipher_plaintext_header_size = 16;
sqlite> PRAGMA cipher_hmac_algorithm = HMAC_SHA1;
sqlite> PRAGMA cipher_kdf_algorithm = PBKDF2_HMAC_SHA1;
sqlite> ATTACH DATABASE 'plaintext.db' AS plaintext KEY '';
Error: file is not a database

Any idea why this isn't working?
Note: I replaced my actual key with 1234567 in this comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions