A hack script for game at https://unlock.oneplus.com/en-gb. Play it from terminal!
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.
These instructions play the game at https://unlock.oneplus.com/en-gb/ from your terminal/cmd.
Make sure you have the latest version of node.js
installed. Get it from here for your operating system.
Thats all.
- 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
token
andcsrf-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.
-
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
F12
orCtrl + Shift + I
and 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 Side
as 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 Now
button and selectCopy Link Address
. -
Now paste the link in browser tab with debugger open. You will be logged in to your account.
-
Go to
Network
Tab in the debugger and check for a row withstatus
value 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
Green
color. Click it. And you will get the data you need.
- Copy these values on to the file
oneplus.js
. On line no11
to18
and also on line67
.
- 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.
Report Here. Or hit me up on Twitter @anamritraj.
Anand – @anamritraj | anandamritraj.in
Distributed under the MIT license. See LICENSE
for more information.