Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚠️ [GUIDE] Help my cookie keeps expiring when I use a VPS! ⚠️ #545

Open
alanbixby opened this issue Mar 12, 2022 · 17 comments
Open
Labels
guide wontfix This will not be worked on

Comments

@alanbixby
Copy link
Member

alanbixby commented Mar 12, 2022

🚨 Step 0: Update to v6.0.1 or higher, see #824 .

Roblox introduced a breaking API change on August 27, 2024 that will cause our library to flag all cookies as invalid.


Retrieving a .ROBLOSECURITY cookie on a headless VPS:

⚠️ You must have a static IP on a dedicated VPS that you can SSH into; free hosts like Repl.it and Glitch are not compatible.

Adapted from a DigitalOcean tutorial.


As of March 8th, 2022, Roblox began rolling out a mandatory security feature that locks an account's .ROBLOSECURITY cookie to an IP region. Learn more here: https://devforum.roblox.com/t/ip-changes-invalidate-cookie/1700515

To bypass this, you must create the token from your VPS; the easiest way of which is through an SSH tunnel. When using this solution, the VPS must be the only IP accessing the account. Relogging without the proxy, or using a free coding workspace like Repl.it, Glitch, or Heroku, that assign dynamic IPs will not work.


Step 0) Make sure you are signed out of the target account, and have SSH access to your VPS.

Step 1) Connect to your VPS over SSH:

ssh your_user@your_server_ip

Step 2) Whitelist a port in your firewall (any value between 1024 and 65535), we will use 1234:

sudo ufw allow 1234

If you have never set up a firewall, I strongly recommend reading this article to harden your server; make sure to allow your SSH port too!

Step 3) Disconnect and start an SSH tunnel on the whitelisted port:

ssh -D 1234 your_user@your_server_ip

Make sure you are running this command from your local computer and not inside the VPS.
Do not close this connection until you are done with all steps and have closed your proxied browser.

You will be prompted for a password, and then there will be no sign for success for failure, this is expected.

Step 4) From a new terminal instance on your local computer, connect your web browser to the proxy in incognito, and log in:

It is assumed you are running Windows on your local computer. These commands should be run outside of WSL, either use Git Bash or cmd. It may help to close all other instances of your browser before running this command, and go to https://whatsmyip.com/ to ensure you are operating through your VPS's IP address.

Google Chrome:

start chrome --incognito --proxy-server="socks5://localhost:1234" https://www.roblox.com/login

Microsoft Edge:

start msedge --inprivate --proxy-server="socks5://localhost:1234" https://www.roblox.com/login

Mozilla Firefox (Less recommended; must be manually configured.)

Step 5) Retrieve your cookie as normal; this is nothing new.

Step 6) Copy the cookie to your VPS, write to a .env file, etc, your pick.

Step 7) Close the incognito proxied window; do not press log out.

Step 8) [Clean-Up]: Remove the whitelisted port from your firewall rules:

sudo ufw delete allow 1234

Step 9) You may now close the SSH tunnel by closing your terminal; you are done- as far as Roblox can tell, you logged in from your VPS's IP.


⚠️ From now on, you MUST be connected through the SSH Tunnel to access the Roblox account. Failing to do so will violate the IP check and invalidate your cookie.

@alanbixby alanbixby added wontfix This will not be worked on guide labels Mar 12, 2022
@alanbixby alanbixby pinned this issue Mar 12, 2022
@Dq2rk
Copy link

Dq2rk commented Mar 20, 2022

Could you send me a tutorial video?

@TheInspector556
Copy link

A video tutorial would be better.

@ReduxGB
Copy link

ReduxGB commented Mar 24, 2022

Could you send me a tutorial video?
@Dq2rk

A video tutorial would be better.
@TheInspector556

There is no need for a tutorial video, the guide is pretty straight forward as its just copy and pasting at this point. All the information you need is there, with links to external resources for topics you will also need to know to do this. Anything not included means you may have to research these yourself. A video would simply do the same as the guide (of which is simply copy and pasting).

@diggingforce
Copy link

no way

@MetaShrimps
Copy link

Thank you so much11! This helped my dumb developer.

@monskov
Copy link

monskov commented Apr 27, 2023

im getting
" A positional parameter cannot be found that accepts argument" at step 4. My proxy seems to be operational, so this is confusing.

@monskov
Copy link

monskov commented Apr 27, 2023

start msedge --inprivate --proxy-server="socks5://localhost:1234" https://www.roblox.com/login

Ugh. Dont use the windows terminal as i inferred from this guide, use the command prompt. Dont use powershell.

@Octohacker1

This comment was marked as off-topic.

@Luna-blahaj
Copy link

can someone please dm me if this still works discord is deeluc. with no capitals and the . is included.

I can help you, I've found an easy way to do it. I've sent you a friend request samsamsad is my username

@efenatuyo

This comment was marked as outdated.

@Neztore
Copy link
Member

Neztore commented Dec 18, 2023

Friend of mine already made this repo.. : You might want to check it out <3

I don't appreciate dual-hook software being advertised here, and anything that asks users to submit their cookie is already suspicious.

@noblox noblox deleted a comment from EvilBytecode Dec 18, 2023
@EvilBytecode

This comment was marked as abuse.

@EvilBytecode

This comment was marked as abuse.

@MystificScripts

This comment was marked as off-topic.

@supercoolspy
Copy link

I made a video tutorial of this if anyone still needs it: https://youtu.be/gFtz0qjejhw

@meruiden
Copy link

meruiden commented Aug 18, 2024

If your vps has Docker installed, enabling UFW is not recommended since Docker and UFW are incompatible.

"Docker and ufw use iptables in ways that make them incompatible with each other."

You can still get the proxy working using serjs/socks5-server by running this on your VPS:

docker run --rm -p 1090:9090 -e PROXY_PORT=9090 serjs/go-socks5-proxy

And then this locally with your VPS's external ip:

taskkill /f /t /im msedge.exe
start msedge --inprivate --proxy-server="socks5://INSERT-EXTERNAL-IP-HERE:1090" https://www.roblox.com/login

taskkill first because edge has some weird caching causing your proxy not to get connected

@JustAnEric
Copy link

Just use a VPN to connect to your server's IP region and copy the token from the website, simple. This guide is too much and too advanced for no reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guide wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests