cscape / vitalsource-dl

Download e-books directly from VitalSource
MIT License
60 stars 37 forks source link

Obtaining globalCookieVal #1

Closed ChristianVaughn closed 3 years ago

ChristianVaughn commented 4 years ago

image What cookie data is needed to copy to place in the script? It is unclear what is needed to place in the js file.

Brad331 commented 4 years ago

Did you ever figure it out? I also have this question.

nec0 commented 4 years ago

did anyone get it? I managed only through screenshots of the pages, but with my code

girpa3 commented 4 years ago

did anyone get it? I managed only through screenshots of the pages, but with my code

I am able to download through print option

CaptainChicky commented 3 years ago

Yea.. hm... I'm not so sure either...

ciroiriarte commented 3 years ago

did you ever make it work?

CaptainChicky commented 3 years ago

No. It still doesn't work, since the cookie value is still a mystery 😶

ciroiriarte commented 3 years ago

No. It still doesn't work, since the cookie value is still a mystery 😶

According to this: https://github.com/axios/axios/issues/943#issuecomment-308565686, it seems to have this structure:

"cookie1=value; cookie2=value; cookie3=value;"

Tried again, didn't work for me either but now I get "Unauthorized" trying to access any of my books after logging in to the web site. 🤦‍♂️

image

ChristianVaughn commented 3 years ago

I am pretty sure this exploit has been patched out. It didnt work the last time i used this which was around april or may.

On Mon, Jan 11, 2021, 2:31 PM Ciro Iriarte notifications@github.com wrote:

No. It still doesn't work, since the cookie value is still a mystery 😶

According to this: axios/axios#943 (comment) https://github.com/axios/axios/issues/943#issuecomment-308565686, it seems to have this structure:

"cookie1=value; cookie2=value; cookie3=value;"

Tried again, didn't work for me either but now I get "Unauthorized" trying to access any of my books after logging in to the web site. 🤦‍♂️

[image: image] https://user-images.githubusercontent.com/1750260/104245501-2679f180-5443-11eb-8f0f-9bb722f1690b.png

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/cscape/vitalsource-dl/issues/1#issuecomment-758266359, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDNRVHSTTSQYBMD6A7TLIDSZN33JANCNFSM4KJZ7OVA .

ciroiriarte commented 3 years ago

Ok, dead in the water then..

girpa3 commented 3 years ago

It was working in the May last year. Try to use the proxynova or charles proxy to get required api keys.

ciroiriarte commented 3 years ago

Getting the cookies in a file (Netscape format) is not the challenge, but to cram the them in the single variable defined in the script :)

Care to share the knowledge @girpa3 ?

ciroiriarte commented 3 years ago

Could you please confirm that the variable definition should look something like this:

const globalCookieVal = reese84=long-multicharacter-string; _jigsaw_session=another-long-multicharacter-string;

?