/oneplus-unlock-your-speed-hack

A hack script for game at https://unlock.oneplus.com/en-gb/

Primary LanguageJavaScriptMIT LicenseMIT

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 token and csrf-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.

    Blocked on Browsers!

  • Now press F12 or Ctrl + Shift + I and open debugging tools in your browser. I will be using Google Chrome.

  • Now Click the Button shown in the diagram.

    Click here

  • 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.

    Change the view

  • Now reload the page and you'll have something similar to this.

    Hurray!

  • 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 select Copy Link Address.

    Copy Link address

  • Now paste the link in browser tab with debugger open. You will be logged in to your account.

    Logged In!

Getting the Authentication Object

  • Go to Network Tab in the debugger and check for a row with status value as 101. Click the Row. If you don't see it reload the page and check again.

    Networks Tab

  • 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.

    Open Websockets

  • Now, do you see that row in Green color. Click it. And you will get the data you need.

    Yeah Sweet data!

Update your Files

  • Copy these values on to the file oneplus.js. On line no 11 to 18 and also on line 67.

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.