gkpln3 / evrit-to-kindle

Decrypts encrypted books from Evrit to allow sending them to Kindle devices, Please don't use this to pirate books. העברה של ספרים מאפליקציית עברית לקינדל.
GNU General Public License v3.0
23 stars 1 forks source link

issue resolved #1

Closed enumer1 closed 2 years ago

enumer1 commented 2 years ago

resolved

gkpln3 commented 2 years ago

Hey, can you please attach the full log here? You can upload it as a file

gkpln3 commented 2 years ago

There is no log file, I meant the full log of the log you sent in the picture

gkpln3 commented 2 years ago

Can you try fetching the orignal (encrypted) epub (using adb pull) are see how many xhtml files are there? It's a zip file, you can unpack it using unzip or 7z.

gkpln3 commented 2 years ago

Yes

gkpln3 commented 2 years ago

Here is good. Maybe try scrolling through the book the its last pages while the frida script is attached. It may trigger more decryptions.

gkpln3 commented 2 years ago

There seems to be a problem with the last few pages. You can try packing the book manually by editing loader.py: goto the line where it says:

tempdir = tempfile.mkdtemp()

to say:

tempdir = "archives"
gkpln3 commented 2 years ago

I don't think that the "What to do if it breaks" will hep you here, it was meant to handle situations where the obfuscation is changed, which is not the case here. You can now try packing the archives inside "archives" directory yourself (again, to a zip archive) and open it as an epub book.

gkpln3 commented 2 years ago

Cool! What did you had to do to get it to work? The epub should be created automatically.

enumer1 commented 2 years ago

Success! thank you so much!

gkpln3 commented 2 years ago

Great! Star the repo if you like it :)