Giter Site home page Giter Site logo

broken for Nook? about dedrm_tools HOT 12 OPEN

nodrm avatar nodrm commented on August 15, 2024
broken for Nook?

from dedrm_tools.

Comments (12)

ElleKayEm avatar ElleKayEm commented on August 15, 2024

Your key probably changed. Here's how to extract it now: https://www.aricrenzo.com/2019-12-13-Liberate-Your-Nook-Ebooks/

from dedrm_tools.

unhandyandy avatar unhandyandy commented on August 15, 2024

I tried that method but the cc_hash_data table has no rows. I found another cc_hash_data table in devices.db, which had two rows, but both were 60 characters long and neither worked.

from dedrm_tools.

ElleKayEm avatar ElleKayEm commented on August 15, 2024

Some people who had that issue had better luck with a different virtual Android device and or Nook app. You might find some useful info in more recent comments in this thread: apprenticeharper#814

from dedrm_tools.

unhandyandy avatar unhandyandy commented on August 15, 2024

Yeah, I had seen that thread, it didn't work on my rooted Samsung tablet. Are you saying I should try a virtual device instead? That was never necessary before.

And are saying there are "different ... Nook app[s]" I could try? Do you mean an earlier version of the Nook app?

from dedrm_tools.

ElleKayEm avatar ElleKayEm commented on August 15, 2024

Yes, that's what I meant. You might also try logging out and back into the Nook app on your tablet. Seems like someone mentioned that working for them.

from dedrm_tools.

momijizukamori avatar momijizukamori commented on August 15, 2024

Found this issue while doing some hunting of my own, so some more info! I also experienced the same issue trying to find the key hash in the version of the Nook app directly from the Google Play store (v5.5.1.12) - no rows in the cc_hash_data table of cchashdata.db, 60 character hash in the cc_hash_data table in devicemanager.db which doesn't work to decrypt the epubs.

HOWEVER. I decided to try an older version of the app, from the site listed in the linked blog post (v5.0.5.35, because the blog post discusses a 5.0 version working. The cchashdata.db file generated after signing in on THAT version does have a row with a key in it, which is 28 characters long. And, very interestingly, importing that key in the Calibre plugin works on the epubs I downloaded and copies over on the higher version. So I'm guessing either the 60-character key is a different representation of the same data in the 28-character key (which the plugin isn't equipped to handle yet), or there's a 28-character key hidden somewhere else in the files of the newer version that I haven't been able to find yet (though I did poke around the other dbs some and found nothing).

from dedrm_tools.

noDRM avatar noDRM commented on August 15, 2024

The actual key for the encryption itself (the one that needs to be imported into the plugin) will always be 28 characters. There's no way for Nook to change that without breaking compatibility for all existing readers. That's because the key is the base64 representation of a SHA1 hash (using Adobe's PassHash implementation). If the key wasn't 28 characters / 20 bytes, it would no longer be the passHash algorithm. This means that there must be a 28-character string hidden somewhere else.

Of course the key itself, the data encoded in this 28-character base64 string can be changed by Nook.

In case you didn't see it yet, fesiwi created a Python script that can export this key from the Windows Store Nook app: #9
I plan to integrate this script into the plugin as soon as possible.

from dedrm_tools.

unhandyandy avatar unhandyandy commented on August 15, 2024

from dedrm_tools.

noDRM avatar noDRM commented on August 15, 2024

Yes, it can, and I've just done that :P
I will also add support for that to the plugin.

Only issue would be extracting the necessary data, as it looks like the Nook app forbids backups by default.

Yes, it can be adapted to Android, and I've just done that for a quick test (and successfully decrypted a book). The problem is that the Nook Android app seems to forbid backups so you'd need a way to extract that user data (either a rooted device or a patched APK). But looking at @momijizukamori's response, there seems to be a way to do that. Or did you use an emulator and extracted the files from that? I used my actual Android phone and modded the app to allow backups.

from dedrm_tools.

noDRM avatar noDRM commented on August 15, 2024

Next version of the plugin will support importing keys from the Nook Windows Store app, and also from the extracted Android app data.

If you want to test without waiting for the next release, you can click on the "Actions" tab at the top, then click on the newest workflow run, then on the "plugin" artifact at the bottom and you'll be able to download a ZIP file with the newest plugin packaged from the latest commit.

from dedrm_tools.

momijizukamori avatar momijizukamori commented on August 15, 2024

The problem is that the Nook Android app seems to forbid backups so you'd need a way to extract that user data (either a rooted device or a patched APK). But looking at @momijizukamori's response, there seems to be a way to do that. Or did you use an emulator and extracted the files from that? I used my actual Android phone and modded the app to allow backups.

I have a rooted Android phone (Pixel 3a) so I just used a file browser app to copy the files out of the system data dir and into a userspace folder so I could email them to myself.

from dedrm_tools.

junefish avatar junefish commented on August 15, 2024

These instructions just worked perfectly for me! #9

from dedrm_tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.