I am making a ranking bot using a service that supports my application but does not set my app on one single server. Roblox deletes cookies that have a significant location change, so I would need to get a cookie using a VPN located close to the server where my project is hosted. This can be very frustrating, doing it once or twice every day, so I would like to log in with the https://auth.roblox.com/v2/login API. This project is in node.js.
There are a few issues with this. When I send a request with the Axios library with the correct username, password, and token, it returns forbidden. Is my captcha token the one I get from the data-hcaptcha-response attribute? What is my captchaProvider parameter? Here is what I have so far.
This is just wrong on so many levels
Roblox doesn’t use HCaptcha, they use Funcaptcha
You will get details of the captcha id and metadata (blob data) from headers which you need to solve in order to get a valid token. Then you need to send a request back to the api with the token and captcha id in headers
Oop… Do I request one login attempt, then take the headers, render a captcha on my end, and then make another request? Or do I get the headers from another endpoint? Also, how do I render a funcaptcha on my server/html page to be sent back to roblox?
You make a request, get the data from the headers, and request again with the correct headers
As for rendering the captcha it’s difficult. if I remember correctly, there is a library called funcaptcha which will render the link for your challenge based on the blob data and public key, then you have to put the captcha in an iframe, track results, and on completion it will return a valid token
I can not find the funcaptcha ID anywhere in the response’s headers… This article states that what I am doing may not be possible without an oauth key. Is this true?