anamritraj/oneplus-unlock-your-speed-hack
A hack script for game at https://unlock.oneplus.com/en-gb/
OnePlus Unlock your Speed: Hack Script
A hack script for game at https://unlock.oneplus.com/en-gb. Play it from terminal!
WARNING
This is just for educational purposes. I aim to show the basics of web development. Whatever you do with this script is not my responsibilty.
Please respect the game and other people. Also, I take no warranty of any kind. You will get blocked by server if you don't respect the limits.
Getting Started
These instructions play the game at https://unlock.oneplus.com/en-gb/ from your terminal/cmd.
Requirements
Make sure you have the latest version of node.js installed. Get it from here for your operating system.
Thats all.
Setting up
- Open a cmd/terminal.
- Clone this repository in your local machine using
git clone https://github.com/anamritraj/oneplus-unlock-your-speed-hack.git
- Now do
cd oneplus-unlock-your-speed-hack
- Now in that directory
npm install
- It may take a couple of seconds to finish this step.
- Now time to get your
tokenandcsrf-token.
You need to get a few details from the browser to run this script. So put on your hacking hat (if you have one, if you don't then get one!) and follow along.
Getting the game to run on a PC browser.
-
First of all open the game in a browser https://unlock.oneplus.com/en-gb/
-
Now it will show up something like this.
-
Now press
F12orCtrl + Shift + Iand open debugging tools in your browser. I will be using Google Chrome. -
Now Click the Button shown in the diagram.
-
Clicking it will make the browser look like this. Now Click the 3 Dots on the top right corner of the Developer Tools. And click on the last icon after
Dock Sideas shown in the image below. -
Now reload the page and you'll have something similar to this.
-
Now Tap multiple times and you will get to Enter your Email page. Enter your details and you will recieve a link to play the game in your email.
-
Open your email and Right Click on the big red
Play Nowbutton and selectCopy Link Address. -
Now paste the link in browser tab with debugger open. You will be logged in to your account.
Getting the Authentication Object
-
Go to
NetworkTab in the debugger and check for a row withstatusvalue as101. Click the Row. If you don't see it reload the page and check again. -
Now, when you click that row, you will see a lot of data going through. Chill. Take a deep breath. Just scroll to the top of the small box that appears. As shown below. This is the websockets connection which the game establishes to the server.
-
Now, do you see that row in
Greencolor. Click it. And you will get the data you need.
Update your Files
- Copy these values on to the file
oneplus.js. On line no11to18and also on line67.
Running the Script
- Now save that file. And in the terminal/cmd run
npm start
- This will start your script and you should see the output as below:
> node oneplus.js
Connecting
Authenticated!
emited: 100
emited: 200
- The script is designed to put logs after every 100 taps.
- You can run multiple instances of this script but be aware the server will limit you.
- I think upto 100 Taps per second is fine but after that it will limit you. BE SAFE.
Issues?
Report Here. Or hit me up on Twitter @anamritraj.
Meta
Anand – @anamritraj | anandamritraj.in
Distributed under the MIT license. See LICENSE for more information.