noDRM / DeDRM_tools

DeDRM tools for ebooks
6.59k stars 287 forks source link

DRM Not Removing #403

Closed snortoncat closed 9 months ago

snortoncat commented 9 months ago

Question / bug report

The Kindle Windows version I got the book from is 2.0 . I couldn't revert to any previous versions because whenever I tried to download the book on older versions it would tell me I needed to update to download the book. No other option. The book was published August 28th, so I wouldn't be to surprised if there were new protections for new books. In the past I could download with older versions, but this one was different than the others I tested and still worked. I'm on windows 10. If any additional info is needed I'll be glad to share.

Which version of Calibre are you running?

6.26

Which version of the DeDRM plugin are you running?

10.0.3

If applicable, which version of the Kindle software are you running?

2.0

Log output

Paste log output here.

ApplicationPaletteChange event ignored Using calibre Qt style: True calibre Debug log calibre 6.26 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.10.1 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 5, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 5, 0) && KFX metadata reader (from KFX Input) (2, 5, 0) && KFX Input (2, 5, 0) && Obok DeDRM (10, 0, 3) calibre 6.26 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.10.1 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 5, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 5, 0) && KFX metadata reader (from KFX Input) (2, 5, 0) && KFX Input (2, 5, 0) && Obok DeDRM (10, 0, 3) QPA platform: windows devicePixelRatio: 1.25 logicalDpi: 96.0 x 96.0 physicalDpi: 113.41395348837209 x 113.12164948453608 [0.00] Starting up... [0.00] Showing splash screen... [0.14] splash screen shown [0.14] Initializing db... [0.14] db initialized [0.14] Constructing main UI... DEBUG: 0.0 obok::utilities.py - loading translations DEBUG: 0.0 obok::dialogs.py - loading translations DEBUG: 0.0 obok::config.py - loading translations DEBUG: 0.0 obok::action_err.py - loading translations [0.88] main UI initialized... [0.88] Hiding splash screen Starting QuickView Gather KFX-ZIP (from KFX Input) 2.5.0: Importing C:\Users\snort\OneDrive\Documents\My Kindle Content\B0CGVQ6CF5_EBOK\B0CGVQ6CF5_EBOK.azw Gather KFX-ZIP (from KFX Input): Gathered 16 file(s) as C:\Users\snort\AppData\Local\Temp\calibre_3miiwij5\lkpc51u1.kfx-zip DeDRM v10.0.3: Trying to decrypt lkpc51u1.kfx-zip Using Library AlfCrypto DLL/DYLIB/SO Decrypting KFX-ZIP ebook: lkpc51u1 Found 0 keys to try after 0.1 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.9f826d0c-9e66-4deb-becb-fa2521f5ddec.voucher Traceback (most recent call last): File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 886, in decryptvoucher File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 762, in pkcs7unpad File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 102, in _assert Exception: Incorrect padding - Wrong key DeDRM v10.0.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key DeDRM v10.0.3: Looking for new default Kindle Key after 0.1 seconds searching for kinfoFiles in C:\Users\snort\AppData\Local Found K4PC 1.25+ kinf2018 file: C:\Users\snort\AppData\Local\Amazon\Kindle\storage.kinf2018 Found K4PC 1.9+ kinf2011 file: C:\Users\snort\AppData\Local\Amazon\Kindle\storage.kinf2011 Decrypted key file using IDString '3659970973' and UserName 'snort' Decrypted key file using IDString '3659970973' and UserName 'snort' DeDRM v10.0.3: Found 2 new keys Decrypting KFX-ZIP ebook: lkpc51u1 Got DSN key from database key_0 Got DSN key from database key_1 Found 1 keys to try after 0.3 seconds Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.9f826d0c-9e66-4deb-becb-fa2521f5ddec.voucher Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 957, in KindleMobiDecrypt File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 261, in GetDecryptedBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, in decrypt_voucher Exception: Failed to decrypt KFX DRM voucher with any key

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 886, in decryptvoucher File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 762, in pkcs7unpad File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 102, in _assert Exception: Incorrect padding - Wrong key Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 957, in KindleMobiDecrypt File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 261, in GetDecryptedBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, in decrypt_voucher Exception: Failed to decrypt KFX DRM voucher with any key

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 105, in decrypt_voucher File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 886, in decryptvoucher File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 763, in pkcs7unpad File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\ion.py", line 102, in _assert Exception: Incorrect padding - Wrong key Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 957, in KindleMobiDecrypt File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 261, in GetDecryptedBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, in decrypt_voucher Exception: Failed to decrypt KFX DRM voucher with any key

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 991, in KindleMobiDecrypt File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 261, in GetDecryptedBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, in decrypt_voucher Exception: Failed to decrypt KFX DRM voucher with any key DeDRM v10.0.3: Ultimately failed to decrypt after 0.3 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md Running file type plugin DeDRM failed with traceback: Traceback (most recent call last): File "calibre_plugins.dedrm.init", line 957, in KindleMobiDecrypt File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\k4mobidedrm.py", line 261, in GetDecryptedBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 67, in processBook File "C:\Users\snort\AppData\Roaming\calibre\plugins\DeDRM.zip\kfxdedrm.py", line 111, in decrypt_voucher Exception: Failed to decrypt KFX DRM voucher with any key

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "calibre\customize\ui.py", line 187, in _run_filetype_plugins File "calibre_plugins.dedrm.init", line 1056, in run File "calibre_plugins.dedrm.init", line 1007, in KindleMobiDecrypt calibre_plugins.dedrm.DeDRMError: DeDRM v10.0.3: Ultimately failed to decrypt after 0.3 seconds. Read the FAQs at noDRM's repository: https://github.com/noDRM/DeDRM_tools/blob/master/FAQs.md Package KFX (from KFX Input) 2.5.0: Packaging C:\Users\snort\AppData\Local\Temp\calibre_3miiwij5\lkpc51u1.kfx-zip Processing container: B0CGVQ6CF5_EBOK.azw Running file type plugin Package KFX (from KFX Input) failed with traceback: Traceback (most recent call last): File "calibre\customize\ui.py", line 187, in _run_filetype_plugins File "calibre_plugins.kfx_input.package_filetype", line 21, in run File "calibre_plugins.kfx_input.package_filetype", line 32, in run_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 79, in convert_to_single_kfx File "calibre_plugins.kfx_input.kfxlib.yj_book", line 210, in decode_book File "calibre_plugins.kfx_input.kfxlib.yj_book", line 317, in get_container calibre_plugins.kfx_input.kfxlib.utilities.KFXDRMError: Book container B0CGVQ6CF5_EBOK.azw has DRM and cannot be converted KFX metadata reader (from KFX Input) activated for C:\Users\snort\AppData\Local\Temp\calibre_3miiwij5\m7pbkinj_add_books\0\B0CGVQ6CF5_EBOK.kfx-zip [16.92] splash screen hidden [16.92] Started up in 16.92 seconds with 6 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b'\tH\x9e\x99\xd80-\xd2I\x0eA<-dp\xf1K\xa2%*\xe4\x87tL\x13\xe4!N\x9a\x0b\xac>', b'C:\Users\snort\OneDrive\Documents\My Kindle Content\B0CGVQ6CF5_EBOK\B0CGVQ6CF5_EBOK.azw']

ElleKayEm commented 9 months ago

For KFX format like this, use DeDRM 10.0.9: https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.9