Decode Battle of Balls Share Links and Automate Dragon Egg Retrieval

This article walks through extracting the hidden ID from Battle of Balls' short share URL, decoding the base64 parameters, and using the revealed ID to request dragon eggs (or lollipops) automatically with a Python script.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Decode Battle of Balls Share Links and Automate Dragon Egg Retrieval

After months of not playing Battle of Balls, the author discovered a new dragon‑egg share link and decided to analyze it.

The short URL http://t.cn/RSBFXMR expands to a longer URL containing a b parameter that is base64‑encoded.

Using Chrome DevTools the author captured the request sent to http://cn.battleofballs.com/share?type=3&id=99161845, which appears to fetch the dragon egg.

The b parameter in the expanded URL holds a base64 string. The page's index.js reveals the decoding logic, which involves an obfuscated array _0xa5cf with 135 elements.

Decoding the base64 string yields the clear parameters:

id=99161845&Account=%E6%88%91%E6%81%8B%E5%BD%BC%E6%81%8B&0=temp&Level=6&Scores=1&Icon=4&PassIcon=&type=3

With the extracted id, the author can request the dragon egg directly via http://cn.battleofballs.com/share?type=3&id=99161845. Changing type=1 retrieves a lollipop instead.

The article also provides a Python script (shown in the image below) that automates the request, optionally scheduled as a cron job and using proxy IPs.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

reverse engineeringBase64Python automationgame hackingURL decoding
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.