lumo93 / RE-FLEX

GNU General Public License v3.0
33 stars 12 forks source link

Again Error code 420 #23

Open vtdeleond opened 7 months ago

vtdeleond commented 7 months ago

Looks like Amazon is working hard this year. Again we have Error code 420.

Or just me?

lumo93 commented 7 months ago

Currently yes, the script has stopped working. It may be related to the android version in the user agent because another user on Android 11 had the 420 error in the official app

vtdeleond commented 7 months ago

I've already updated it to ANDROID_FLEX_VERSION = "3.99.5.14.0". Now I'm waiting for an Offer.

vtdeleond commented 7 months ago

They(Amazon) have been updating the app frequently this week. They might've changed something. I've decompiled the apk, but it is not easy to read the decompiled code, and unknown where to look.

lumo93 commented 7 months ago

The app version is not the problem, the Android system version is, at least from what I gathered so far

I have never decompiled an app so I'm useless in terms of that, but if you find anything and want to contribute to the code, you can always make a fork and do a pull request

vtdeleond commented 7 months ago

The app version is not the problem, the Android system version is, at least from what I gathered so far

I'm not sure about this. I have an old Pixel 2, Android 11. It is working fine. Testing I grabbed one block manually.

I have never decompiled an app so I'm useless in terms of that, but if you find anything and want to contribute to the code, you can always make a fork and do a pull request Sure

I can confirm it is not working even though I updated the APK version in the script.

lumo93 commented 7 months ago

So that's good to know about the Android version, so there definitely is something weird going on. I'll have to keep collecting info to find out more

davlulham commented 7 months ago

@sdubzz Any ideas? I take it you're the genius who managed to get the script working again last week. Your hard work is much appreciated!

Letippiie commented 7 months ago

So that's good to know about the Android version, so there definitely is something weird going on. I'll have to keep collecting info to find out more

looking through the request data and your source I don't see in your Req a Cookie Var nor do I remember that ever being there I looked at every other part of the req and it looks perfect but the Cookie seems to be absent this is the Req Sent when looking for a block. at-main="Atza|REDACTED"; sess-at-main="REDACTED"; session-id=REDACTED; session-id-time=2330942290l; ubid-main=REDACTED; x-main="REDACTED"; session-token=REDACTED; lc-main=en_US; i18n-prefs=USD

it will return Code 200 { "offerExperienceVersion": "V1", "offerList": [REDACTED], "refreshInterval": 1000, "refreshTimeout": 1800000 }

takov751 commented 7 months ago

https://github.com/mdesilva/AmazonFlexUnlimited/issues/159#issuecomment-1793369435

New header introduced Singature-input and signature which only effects accepting offers as of yet

EDDY5432 commented 7 months ago

mdesilva/AmazonFlexUnlimited#159 (comment)

New header introduced Singature-input and signature which only effects accepting offers as of yet

Do you have a solution for the new 420 error?

apimagnifier commented 7 months ago

guys, I worked on a company where we did exactly the same protections, I can help you

takov751 commented 7 months ago

@apimagnifier any help more than welcomed.

nemo03 commented 7 months ago

guys, I worked on a company where we did exactly the same protections, I can help you

Any help will be appreciated.

vtdeleond commented 7 months ago

guys, I worked on a company where we did exactly the same protections, I can help you

Scammer alert.

Just post the solution. Not DM you