studocuhack icon indicating copy to clipboard operation
studocuhack copied to clipboard

Last Standing Issue : Blur Page which occurs on some pages

Open lol98lol98x opened this issue 1 year ago • 19 comments

I am personally having issues with removing the blur myself. And I see your code also is.

Any thoughts or ideas on how to get around this? Or how it is chosen which pages will be blurred? I cant even manually figure out how to bypass the blur in dev tools.

lol98lol98x avatar Feb 10 '24 03:02 lol98lol98x

Well, they arent blurring the images, they are just fetching a low res png image from their server and scaling to look blurred, it's just a big low-resolution picture. I am looking into it.

You can star the repo and check in once in a while or also do pull requests for suggestions.

danieltyukov avatar Feb 10 '24 08:02 danieltyukov

I noticed it was a tiny image too, after playing with the html. Any ideas on what can be done to resolve this? There has to be an original image we can find and load somehow. However it may be dynamic and difficult to do. As I think they're using a self hosted and outside CDN for things now. They are doing this to attempt to fix these bypass methods.

lol98lol98x avatar Feb 10 '24 10:02 lol98lol98x

Hey @danieltyukov or @lol98lol98x any chance you guys have thought of a fix for this? Praying you do somehow :(

teahcerzpet avatar Feb 23 '24 21:02 teahcerzpet

Hello, I installed 2.3.0 on edge/mac and still get blurred pages.

Thanks

capellavacancies avatar Feb 27 '24 09:02 capellavacancies

Hey @danieltyukov, dont know if you ralized yet, but fetching the low res images p. ex.: "page3.webp" as the file "bg3.png" will return you the full res image from the server without checking any authentification ;)

Im currently still having my finals but would love to help you implement a workaround!

L30-stack avatar Mar 03 '24 19:03 L30-stack

@L30-stack > Hey @danieltyukov, dont know if you ralized yet, but fetching the low res images p. ex.: "page3.webp" as the file "bg3.png" will return you the full res image from the server without checking any authentification ;)

Im currently still having my finals but would love to help you implement a workaround!

Show me an example link vs what it should be. And I'll try to automate it via javascript

Because when I try what you said I get this.

NoSuchKey The specified key does not exist.

lol98lol98x avatar Mar 03 '24 20:03 lol98lol98x

Hey @danieltyukov, dont know if you ralized yet, but fetching the low res images p. ex.: "page3.webp" as the file "bg3.png" will return you the full res image from the server without checking any authentification ;)

Im currently still having my finals but would love to help you implement a workaround!

really cool man, if you can either make a pr or drop me some instructions on how you achieve that ill make a release under your name for this repo.

danieltyukov avatar Mar 03 '24 21:03 danieltyukov

@L30-stack > Hey @danieltyukov, dont know if you ralized yet, but fetching the low res images p. ex.: "page3.webp" as the file "bg3.png" will return you the full res image from the server without checking any authentification ;)

Im currently still having my finals but would love to help you implement a workaround!

Show me an example link vs what it should be. And I'll try to automate it via javascript

Because when I try what you said I get this.

NoSuchKey The specified key does not exist.

Low res: https://d3tvd1u91rr79.cloudfront.net/b1f775b9fb4cc517f7e50863041335de/html/pages/blurred/page3.webp?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6XC9cL2QzdHZkMXU5MXJyNzkuY2xvdWRmcm9udC5uZXRcL2IxZjc3NWI5ZmI0Y2M1MTdmN2U1MDg2MzA0MTMzNWRlXC9odG1sXC9wYWdlc1wvYmx1cnJlZFwvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcwOTU3NTM4N319fV19&Signature=D0-Qczqko9gbzBzdVzQOY2h6vKsrzthtsAOO8-CXqLh0c5Fi27BUIilYSucZT8zL2hLhOiCD84rRKYtHL~lTleHfGpyE-Xs9-w81HWAqM2ggm7onFoaZUdQWMMm8rFJ6cFYai4n4AebexKcevWmcD-i66CSwW7ZUZJf9wH0ODgO-pxbrzN5TXH0xFXeXBpMBUTaiC65fpBjDlUxzehs8MMushUpOH8u698rzF55WH82yGeqgCghZ5sEtdlObuPZ1vQRI1xRplwJVseyia0NLBmQ3O9Q-0NcOvvPJlrGhccK8NtEoe0mn4NFujatfeVRlHYRANyNVd28RoD2i2RtMzQ__&Key-Pair-Id=APKAJ535ZH3ZAIIOADHQ

high res: https://d3tvd1u91rr79.cloudfront.net/b1f775b9fb4cc517f7e50863041335de/html/bg3.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6XC9cL2QzdHZkMXU5MXJyNzkuY2xvdWRmcm9udC5uZXRcL2IxZjc3NWI5ZmI0Y2M1MTdmN2U1MDg2MzA0MTMzNWRlXC9odG1sXC8qLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcwOTU3NTM4N319fV19&Signature=aGs9V2e4IXz8D-FBuCel-vs6ETAeJVZ4R8mXDef3UmM1KqXLrakG6f1oVpIS~E6iZdxT0bgQ6Brdm~Fz8jLKKE6pJiUFeAqYhYL2EwV8c6pXRv6oSD-Tbi-PKGfaZFzJnsTF1TewmBwo75HfBXf6l2bkSjRrRltNc6tMxnWCE~uPQTZ8xuVQtT9IuA3WZWn4u4-XTgVC8-lXIatx8h~Iq~FsSJ7V0sgIGmXpTi8bJZkMu9YgBgmuuMBOruNZStgTJcO-PaS~PoUUdhaZVUkRCmzPnfDyyvDI7gFAZz7lDcD8KNpz8T9NyspZLPmfrZf5gPtW2jdF4aVUYeH~8GIETQ__&Key-Pair-Id=APKAJ535ZH3ZAIIOADHQ

But I'm giving it a try rn.

L30-stack avatar Mar 04 '24 12:03 L30-stack

For a noob ,,, how to you fetch the *.png instead .

Right Clicking and saving isnt working

o0LINNY0o avatar Mar 09 '24 07:03 o0LINNY0o

@o0LINNY0o in the newest commit the png should be fetched automatically and is added to the created print-preview. If there occur any issues let me know :)

L30-stack avatar Mar 09 '24 10:03 L30-stack

@o0LINNY0o in the newest release the png should be fetched automatically and is added to the created print-preview. If there occur any issues let me know :)

i downloaded and install the source and the 2.3.0 and i still get this :

https://imgur.com/a/8DaIfAl

EDIT: 2.3.0 also gives m,e this error:

downloadBtn.innerHTML = '<svg aria-hidden="true" focusable="false" data-prefix="fas" class="svg-inline--fa" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">Download'; downloadBtn.addEventListener('click', (event) => {

o0LINNY0o avatar Mar 09 '24 12:03 o0LINNY0o

There is no release for the current changes yet. Please download the code manually.

Furthermore could you please add a fullscreen screenshot and the full error message.

L30-stack avatar Mar 09 '24 14:03 L30-stack

Sure thing & thanks for your support.

Here is the 2.3.0 Error https://imgur.com/a/oxRUf1C

EDIT: Just realised the previous post cut away alot of it. But if i edit it , its still there ???

the Manually Downloaded Code was creating a clear download , but the pages were made up of the previous clear picture...

eg. Page 2 was repeated for a blurred out Page 3

o0LINNY0o avatar Mar 10 '24 00:03 o0LINNY0o

@L30-stack @o0LINNY0o https://github.com/danieltyukov/studocuhack/releases/tag/v2.4.0

latest release has the changes fixing the error + L30 changes, feedback is welcome, ill keep this issue open for now

danieltyukov avatar Mar 10 '24 11:03 danieltyukov

@L30-stack the blur page is still there, I am still checking over your added code, and your reference links, I think they added secure protection for those pages on the server side right?

danieltyukov avatar Mar 10 '24 13:03 danieltyukov

Hey @o0LINNY0o,

I just tested your document. The issue you get is unfortunately currently not supported.

Studocu sometimes separates documents in a background (we support loading the full res image) and text in the front (currently not supported).

Therefore in your case the text from page 1 is displayed in all pages where the new background was added but no text was available. (Page 3,6,9...)

L30-stack avatar Mar 10 '24 15:03 L30-stack

@L30-stack the blur page is still there, I am still checking over your added code, and your reference links, I think they added secure protection for those pages on the server side right?

The full res pages are only added to the pdf document view in the second window. Still works fine for me

L30-stack avatar Mar 10 '24 15:03 L30-stack

From the network logs, it looks like they implemented something similar to this: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.html

I don't think this is possible to circumvent.

tooxo avatar Aug 01 '24 08:08 tooxo

@tooxo i am currently overall studying their method, this part you got right, here is some basic info you can then through reference dig deeper on bypassing that stuff too https://labs.detectify.com/writeups/bypassing-and-exploiting-bucket-upload-policies-and-signed-urls/

danieltyukov avatar Aug 15 '24 16:08 danieltyukov