Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-17-2010, 09:56 PM   #16
Darth_Bane
Dark Lord of the Sith
Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.
 
Darth_Bane's Avatar
 
Posts: 60
Karma: 95334
Join Date: Jul 2010
Location: A Galaxy Far Far Away
Device: Sony PRS-505 and PRS-300, Kobo Wifi, Touch and Mini, Kindle 4NT
Quote:
Originally Posted by KenJackson View Post
I'm looking around for those inept python files to clean off the DRM, but I've only found a version that's specific to Windows or Mac, that tries to open use Windows DLLs. I suppose I could install windows python under Wine, but that's kind of offensive. The hallmark of scripting languages like python is that they are supposed to be platform independent. I'm mucking with it to see if I can clean out the Windows-specificity.
The Windows-specificity runs pretty deep, and it's rather difficult to remove in this case. You need to run in Windows because ineptkey relies on the fact that the Windows version of ADE is installed and pulls your DRM key from the registry.

If you've already got ADE running in wine, Just install Windows python and PyCrypto and it'll just work. Good luck!
Darth_Bane is offline   Reply With Quote
Old 11-17-2010, 10:25 PM   #17
KenJackson
Addict
KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!
 
Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
Quote:
Originally Posted by Darth_Bane View Post
The Windows-specificity runs pretty deep, and it's rather difficult to remove in this case. You need to run in Windows because ineptkey relies on the fact that the Windows version of ADE is installed and pulls your DRM key from the registry.
Oh I can get what I need from the registry. I just opened regedit, navigated to HCU/Software/Adobe/Adept, exported and am viewing it with strings -el. There's lots of intersting stuff. There's a privateLicenseKey, a licenseCertificate, an authenticationCertificate and there are 6 copies of each. (I must have tried six times.)

I want to get better at Python anyway, and poking around and figuring things out is fun. The only difficulty is that If I do come up with a good script or program, I'll be hesitant to share it for fear that evil doers will shut me down and fine me.

One thing I need to figure out is how to fetch the epub. The .acsm file has a URL but it also has lots of other information. I'm wondering if ADE adds HTTP GET parameters to the URL when it downloads, maybe something like ..covers.com/?hmac=5Uax...
KenJackson is offline   Reply With Quote
Old 11-18-2010, 08:29 AM   #18
stodge
Groupie
stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.
 
Posts: 155
Karma: 1008328
Join Date: Oct 2010
Device: Sony PRS-650SC
Interesting - could you post the relevant portion from the acsm? I'd like to look at that and see if I can understand what it's doing. (I'm at work )
stodge is offline   Reply With Quote
Old 11-18-2010, 12:50 PM   #19
KenJackson
Addict
KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!
 
Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
Quote:
Originally Posted by stodge View Post
Interesting - could you post the relevant portion from the acsm? I'd like to look at that and see if I can understand what it's doing. (I'm at work )
OK. Here is URLLink.acsm, with specifics zeroed or made generic.
Code:
<fulfillmentToken fulfillmentType="buy" xmlns="http://ns.adobe.com/adept">
  <distributor>urn:uuid:00000000-0000-0000-0000-000000000000</distributor>
  <operatorURL>http://acs4.shortcovers.com:8080/fulfillment</operatorURL>
  <expiration>2010-11-15T06:16:04-06:00</expiration>
  <transaction>00000000-0000-0000-0000-000000000000</transaction>
  <resourceItemInfo>
    <resource>urn:uuid:00000000-0000-0000-0000-000000000000</resource>
    <resourceItem>1</resourceItem>
    <metadata>
      <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">The Book Title</dc:title>
      <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Author</dc:creator>
      <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">application/epub+zip</dc:format>
      <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Company</dc:publisher>
      <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en-US</dc:language>
      <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/"></dc:description>
      <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/">0000000000000</dc:identifier>
    </metadata>
    <src>http://ecimages.shortcovers.com/00000000-0000-0000-0000-000000000000.epub</src>
    <downloadType>simple</downloadType>
  </resourceItemInfo>
  <hmac>000000000000000000000000000=</hmac>
</fulfillmentToken>
KenJackson is offline   Reply With Quote
Old 11-18-2010, 01:42 PM   #20
stodge
Groupie
stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.
 
Posts: 155
Karma: 1008328
Join Date: Oct 2010
Device: Sony PRS-650SC
http://ecimages.shortcovers.com/0000...000000000.epub

Here's the book - that should be downloadable using your browser.
stodge is offline   Reply With Quote
Old 11-18-2010, 05:30 PM   #21
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi,

Yes that will get you the exact same DRM encoded epub EXCEPT that it will not have the rights.xml file that includes the encoded key needed by ineptepub along with information from encryption.xml to actually decode your book.

The key idea here is that there is only one encryption done for that particular book at the source for everyone. The ADE grabs that file and takes the key that will actually decode it and then encodes that key with info based on your personal ADE account (based on your registered device) and creates the rights.xml file inside the epub.

Without that right.xml file you can not remove the DRM.

So you will need to take a peak at the network traffic (which might be ssl encrypted itself!) that goes on when ADE grabs the book using that .acsm info if you somehow want to get things to work for you under Linux.

It is a shame that ADE has not simply made a Linux client.
KevinH is offline   Reply With Quote
Old 11-18-2010, 07:05 PM   #22
KenJackson
Addict
KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!
 
Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
Quote:
Originally Posted by KevinH View Post
The key idea here is that there is only one encryption done for that particular book at the source for everyone. The ADE grabs that file and takes the key that will actually decode it and then encodes that key with info based on your personal ADE account (based on your registered device) and creates the rights.xml file inside the epub.
Thank you, Kevin. That's a crucial detail that I wondered about and was going to have to figure out.
KenJackson is offline   Reply With Quote
Old 11-18-2010, 08:09 PM   #23
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
Ken,

A google search for this exact string:

"ContentServer_UserManual.pdf"

is an interesting read.

The key idea is without the right signed public/private key pair xml conversation going on between ADE and the fullfillment site (and by the way the hmac is a sha1 hash of the entire xml node conversation so no changes can be inserted) with the proper xml acsm info you will not get a proper rights.xml file created in the .epub you download and so you are out of luck!

Pretty smart as it means only an ADE with a registered signature and key pair can get to a usable form of the book! Ingenious really.

FWIW, I think this would be very very hard to implement outside of ADE or even to mimic what happens in ADE. So I would simply stick to running Wine or even XP on a virtual machine and running ADE to get your ebooks. Then run ineptkey once to get your adeptkey.der and then the whole conversion can be done from Linux.

The funny thing is the ACS code is java and so Linux is used as the server for most of the process. So the back ends runs on Linux just not the ability to actually read an ADE ebook!
KevinH is offline   Reply With Quote
Old 11-18-2010, 10:46 PM   #24
KenJackson
Addict
KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!
 
Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
Thanks again, Kevin, That is and interesting read.

Yes, ironies abound.
KenJackson is offline   Reply With Quote
Old 12-12-2010, 09:26 PM   #25
stodge
Groupie
stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.
 
Posts: 155
Karma: 1008328
Join Date: Oct 2010
Device: Sony PRS-650SC
Any progress with this?
stodge is offline   Reply With Quote
Old 12-12-2010, 09:34 PM   #26
doreenjoy
01000100 01001010
doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.doreenjoy ought to be getting tired of karma fortunes by now.
 
doreenjoy's Avatar
 
Posts: 1,889
Karma: 2400000
Join Date: Mar 2009
Device: Polyamorous
Quote:
Originally Posted by KenJackson View Post
Pointless for you or for me? The point is, I'm making progress.
You said you had the book downloaded and were reading it, so I assumed it would be pointless for both of us.
doreenjoy is offline   Reply With Quote
Old 12-12-2010, 10:03 PM   #27
KenJackson
Addict
KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!KenJackson goes to infinity... and beyond!
 
Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
Quote:
Originally Posted by stodge View Post
Any progress with this?
Working through the inept code made me realize just how much I need to learn python. So I stopped working on that and started working on learning python.

But then I noticed that you can download python documentation, and I thought hey, wouldn't it be great if I could convert that HTML documentation into a nice epub so I can read it on my eReader? So I played with that for a while and found it's not a trivial exercise.

This is in addition to enjoying reading on my delightful eReader. Plus surfing the web and being amazed at the wealth of books available for free (including on this site). (And then there's Christmas.)

I feel insecure not being able to control the books that I will eventually purchase, so I'll definitely keep at this. But I've only made a tiny bit of progress so far.
KenJackson is offline   Reply With Quote
Old 12-13-2010, 07:46 AM   #28
stodge
Groupie
stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.stodge ought to be getting tired of karma fortunes by now.
 
Posts: 155
Karma: 1008328
Join Date: Oct 2010
Device: Sony PRS-650SC
I develop using Python every day at work so I might be able to offer some assistance/effort after Christmas. I wanted to see if I could write a plugin for Calibre to automatically download and add an epub bought from say Kobo.
stodge is offline   Reply With Quote
Old 09-15-2011, 10:26 AM   #29
reedstrm
Junior Member
reedstrm began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2011
Device: Entourage Edge
Quote:
Originally Posted by KenJackson View Post
Working through the inept code made me realize just how much I need to learn python. So I stopped working on that and started working on learning python.

[...]
I feel insecure not being able to control the books that I will eventually purchase, so I'll definitely keep at this. But I've only made a tiny bit of progress so far.
Following up on an ancient thread, just in case others google there way here like I did. ADE 1.7 runs fine on Linux under Wine (1.2.2 in my case). I had the same frustration of 'what do I do now w/ the acsm file' when borrowing books from the library. The answer ends up being "use the file manager to drag and drop onto the ADE window". Yup, not very scriptable, but at least I (and my wife) can read our books now.
reedstrm is offline   Reply With Quote
Old 10-06-2011, 01:17 PM   #30
mclien
42, the answer
mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.mclien for a long time would go to bed early.
 
Posts: 124
Karma: 17798
Join Date: Sep 2011
Location: Germany
Device: Pocketbook 603
Had the very same problem.
What to do with the acsm file, here is the "simple" solution:

I put the acsm file in the same dir where the ade-exe resists, in my case:
~/.wine/drive_c/Programme/Adobe/Adobe Digital Editions
I change to that dir and than execude this command:
Code:
wine digitaleditions URLLink.acsm
and then ADE downloads/imprts the book to your shelf.

Last edited by mclien; 11-14-2011 at 05:45 AM.
mclien is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adobe epub pdf and URLLINK.acsm Mutts ePub 14 01-21-2012 03:16 PM
ACSM file - anyway to download book without ADE? flyash Reading and Management 9 06-19-2010 10:58 PM
File names with "(" and ")" can cause screen freezes greenapple Ectaco jetBook 5 02-04-2010 08:25 PM
"clock" issues with borrowed library books? and ADE ?? GraceKrispy Sony Reader 5 01-08-2009 03:54 AM
Help! the "Make Sony Reader File" under "Options" is different Dr. Drib Sony Reader 6 04-23-2007 02:56 AM


All times are GMT -4. The time now is 02:50 PM.


MobileRead.com is a privately owned, operated and funded community.