UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

Refresh page

Open CapitanLiteral opened this issue 5 years ago • 122 comments

I fill the auth.json but when I start the script it says that I should refresh the page. Does this happen to anyone else? Is this a bug or I'm doing something wrong?

CapitanLiteral avatar May 04 '21 09:05 CapitanLiteral

I fill the auth.json but when I start the script it says that I should refresh the page. Does this happen to anyone else? Is this a bug or I'm doing something wrong?

Just started doing it for me again also. Hold tight, it will get looked at.

DonaldTPP avatar May 04 '21 09:05 DonaldTPP

The fourth part of the sign that's changing - previously 608c48da and now 608fcf2c - this looks like a hexidecimal version of an epoch timestamp in seconds. I don't have the previous vendor.js to look back at, but this is what I've observed from the new file:

  1. 608fcf2c converted to decimal and then analyzed as a timestamp is 2021-05-03 10:23:40 UTC
  2. The vendor.js full file name from Chrome developer tools is vendor.js?rev=202105031022-6ba1f1c47b

It looks like the revision number and the hex code that is being used are similar but off by a minute, so maybe this is just a coincidence. Just an observation.

I was going to say if 4: is the day and :608 is the revision then it might be dynamically generated?

The first number so far does seem to be incrementing, but is it by day? It seems the 3: lasted both Saturday and Sunday.

Yeah, but on the 3rd they changed the number to 4 - maybe today they'll change it to 5.

This just happened, lol

sonicshake avatar May 04 '21 09:05 sonicshake

@DIGITALCRIMINAL, @hippothon we back at it again.

4 = 5 608fcf2c = 6091065f yoCCrPVmrN27vlUEQLZcW3DZH97KRVoy = Sx7FEcC7r5uKuCIzVljwS8gnZGhNprM5

need a new checksum :(

oftrash avatar May 04 '21 09:05 oftrash

@DIGITALCRIMINAL, @hippothon we back at it again.

4 = 5 608fcf2c = 6091065f yoCCrPVmrN27vlUEQLZcW3DZH97KRVoy = Sx7FEcC7r5uKuCIzVljwS8gnZGhNprM5

need a new checksum :(

You called it brother.

DonaldTPP avatar May 04 '21 10:05 DonaldTPP

Well at least we know it's automatically updated every 24 hours and not some guy on a computer updating it manually lmao.

UltimaHoarder avatar May 04 '21 10:05 UltimaHoarder

Yep, it went again

I think they are detcting use of this tool somehow

idiotabroad avatar May 04 '21 10:05 idiotabroad

Yep, it went again

I think they are detcting use of this tool somehow

They aren't detecting that people are using it, they are probably aware of this page and have their own copy of the scraper and are testing it to see what breaks it, how it gets fixed, how quick it gets fixed etc etc.

DonaldTPP avatar May 04 '21 10:05 DonaldTPP

So is it borked for the time being? I've tried the updated login thingo (I'm real good with the technical lingo), it eventually lets me log in through the geckodriver browser but I then just get:

Scraping Paid Content Scraping Subscriptions There's nothing to scrape. Archive Completed in 2.23 Minutes

ghost avatar May 04 '21 10:05 ghost

So is it borked for the time being? I've tried the updated login thingo (I'm real good with the technical lingo), it eventually lets me log in through the geckodriver browser but I then just get:

Scraping Paid Content Scraping Subscriptions There's nothing to scrape. Archive Completed in 2.23 Minutes

Try setting your max_threads to 1 and not -1

DonaldTPP avatar May 04 '21 10:05 DonaldTPP

Already done and no dice. Patience is a virtue I guess, and I am just a grateful patient pleb.

ghost avatar May 04 '21 10:05 ghost

I have an idea, what if we run selenium wire just to get the correct header?

I mean for the generation of sign we use selenium, with selenium wire all is easy interceptable.

I think this can be done, but on what parameters depends sign?

dearcoding avatar May 04 '21 11:05 dearcoding

I have an idea, what if we run selenium wire just to get the correct header?

I mean for the generation of sign we use selenium, with selenium wire all is easy interceptable.

I think this can be done, but on what parameters depends sign?

Sounds like a good idea but the problem is for the people who aren't tech savvy and can't get all these things going. Just a thought you know?

DonaldTPP avatar May 04 '21 11:05 DonaldTPP

I have an idea, what if we run selenium wire just to get the correct header? I mean for the generation of sign we use selenium, with selenium wire all is easy interceptable. I think this can be done, but on what parameters depends sign?

Sounds like a good idea but the problem is for the people who aren't tech savvy and can't get all these things going. Just a thought you know?

Forgive my ignorance, but how would selenium help in getting the header for the request? It is computed by OnlyFans site itself and changing everyday. How would we extract the computing function from their source code just by using selenium?

ofext avatar May 04 '21 11:05 ofext

I have an idea, what if we run selenium wire just to get the correct header? I mean for the generation of sign we use selenium, with selenium wire all is easy interceptable. I think this can be done, but on what parameters depends sign?

Sounds like a good idea but the problem is for the people who aren't tech savvy and can't get all these things going. Just a thought you know?

Forgive my ignorance, but how would selenium help in getting the header for the request? It is computed by OnlyFans site itself and changing everyday. How would we extract the computing function from their source code just by using selenium?

Well, the sign is generated for every request, for example it is generated also for the login page.

It is based on time (not a problem), other cache variables like auth-id and xbc, which we can edit before making the JavaScript calculate the right headers, the only problem could be if the url is used too in the calculation of the sign.

So we open our selenium sessions on only fans, we edit our cache -> we refresh page, before request is sent we get the sign value, we then abort the request.

Now we have the sign to be used in our requests.

In this way we could have always the updated version of the sign since what we are doing is just using the last JavaScript from only fans servers.

I will try to make it and will let you know where I break, but this seems the only way to have always updated headers without moving all on selenium.

dearcoding avatar May 04 '21 12:05 dearcoding

@dearcoding the url path is used in calculating the sha1 hash, and the hash is then used to compute the third parameter of the sign, so it’s not a value you can get once and then use it multiple times...

ofext avatar May 04 '21 12:05 ofext

@dearcoding the url path is used in calculating the sha1 hash, and the hash is then used to compute the third parameter of the sign, so it’s not a value you can get once and then use it multiple times...

Yeah this means if we find the way to manipulate the url used in the calculation the job is done.

dearcoding avatar May 04 '21 12:05 dearcoding

@dearcoding the url path is used in calculating the sha1 hash, and the hash is then used to compute the third parameter of the sign, so it’s not a value you can get once and then use it multiple times...

Yeah this means if we find the way to manipulate the url used in the calculation the job is done.

The url used is not the browser’s url, it’s a url handled internally to query the api depending on the content currently being displayed on the site and the new content being required by the user while scrolling down a page...

Not saying it can’t be done, just saying it would be kind of messy and error prone

ofext avatar May 04 '21 12:05 ofext

Got this error too. Sadly I was busy working when the script worked.

Macmasteri avatar May 04 '21 12:05 Macmasteri

@dearcoding the url path is used in calculating the sha1 hash, and the hash is then used to compute the third parameter of the sign, so it’s not a value you can get once and then use it multiple times...

Yeah this means if we find the way to manipulate the url used in the calculation the job is done.

The url used is not the browser’s url, it’s a url handled internally to query the api depending on the content currently being displayed on the site and the new content being required by the user while scrolling down a page...

Not saying it can’t be done, just saying it would be kind of messy and error prone

I don't know, i't just a frontend, usually this kind of controls are handled by backend.

dearcoding avatar May 04 '21 12:05 dearcoding

Well at least we know it's automatically updated every 24 hours and not some guy on a computer updating it manually lmao.

so correct me if I'm wrong @DIGITALCRIMINAL, @hippothon & @trevdilley but this appears to be what our daily challenge will be in figuring out the sign:

sign example - 5:########################################:932:6091065f

5: <--- appears to increment daily ########################################: <--- created from combo of random daily static string/ salt, epoch timestamp, api path, userId all separated with "\n" and converted to sha1 932: <---- sha1 checksum 6091065f <--- hex conversion of vendor.js revision epoch timestamp

I wish I could be more help but I'm not very good at JS and def don't know how to reverse engineer it just doing my part to help

dukedward avatar May 04 '21 13:05 dukedward