Skip to content

alvinmurimi/blumcrypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Automation experiment for blum.io Telegram Mini App

This repository contains a Python script designed to interact with the BLUM telegram bot https://t.me/BlumCryptoBot.

Disclaimer

Please Note: The code and information provided in this repository are intended solely for educational and research purposes, with a specific focus on Telegram Mini Apps (TMAs). The author does not condone or encourage any illegal or unethical activities. It is essential to adhere to ethical guidelines and obtain proper authorization before engaging in any security testing attempts. The author is not responsible for any misuse or damage caused by this script.

Features

  • Claim Tasks: Automatically claim tasks available on the platform.
  • Check Balance: Check the current balance of your account.
  • Start Farming: Start the farming process on the platform.
  • Play Games: Automate playing games to earn points.

Prerequisites

Before you can use this script, make sure you have the following installed:

  • Python 3.6 or higher
  • requests library

You can install the required library using pip:

pip3 install requests

Usage

To use this script, you will need your authorization token from the BLUM platform. This token will be used to authenticate your requests.

How to obtain authorization token.

To obtain your authorization token, you need to first enable webview inspecting in Telegram desktop, follow the steps below:

  • Open Telegram desktop and navigate to Settings.
  • Go to Advanced settings.
  • Navigate to Experimental settings .
  • Scroll through the settings, find Enable webview inspecting and make sure its checked.

After enabling webview inspecting, head to the Blum bot and launch the mini app and follow these steps to obtain the token:

  • Right click on any part of the screen in the mini app and select Inspect or Inspect Element, depending on your browser. This will open developer tools.
  • In the developer tools window, navigate to the Network tab (it may be labeled as "Network" or represented by a Wi-Fi icon).
  • In the Filter box within the Network tab, type tasks.
  • Click on Fetch/XHR among the buttons to filter the requests.
  • Keep the developer tools open and interact with the Tasks feature in the Blum bot.
  • Return to the Network tab in the developer tools; you should now see a list of requests.
  • Click on any of the tasks requests and that should open a new tab with with detailed request information..
  • Scroll down to Request Headers and locate the Authorization key. The token (Bearer) value associated with this key is your authorization token.

Refer to the screenshot below for reference:

Developer Tools Screenshot

Command-Line Arguments token: (Required) Authorization token for the BLUM platform.

  • --check-balance: Check the current balance of your account.
  • --claim-tasks: Claim available tasks on the platform.
  • --start-farming: Start the farming process.
  • --play-games: Specify the number of games to play for earning points.

Examples

Check Balance

To check the balance of your account, run:

python3 blum.py your_authorization_token --check-balance

Claim Tasks

To claim available tasks, run:

python3 blum.py your_authorization_token --claim-tasks

Start Farming

To start farming, run:

python3 blum.py your_authorization_token --start-farming

Play Games

To play a specified number of games, run:

python3 blum.py your_authorization_token --play-games number_of_games

Screenshots

Example output with 3 games:

Games Screenshot

Mutliple arguments:

Multiple Arguments Screenshot