So my 6 year old son is in to Beyblade. The Takara Tomy spinning top toy that kids battles each other with. Toys these days are pretty cool, they come with personas, levelling and the whole anime series. And of course it has an APP.
The APP can scan a code within Beyblade to unlock your blade in the APP.
The geek dad inside me smiled a little.
“Maybe we can unlock all the Beyblade in the world” says dad to son.
– –
So the code seems to be a series of black and white boxes forming a QR code like image.
We drew the pictures on paper.
We discovered it’s a grid of 5x5 squares.
So we spoke a bit about binary and permutations of these squares, how binary works, I think it went straight over his head.
Whilst he was playing Mario on Nintendo Switch, I hack around.
– –
2^(5x5) = 33,554,432 — that’s a lot of numbers
Maybe I will create a grid of squares. After some quick Googling, I decided to use HTML, JS and SVGJS
Generated a bunch of squares.
Its been a while since I visited binary.
Basically, I iterated through numbers, doing binary AND with each cell against the number, if it matched, a cell will highlight. For example, 23 > 10111, and if you AND cell 3 using 2^3 with 23, you can classify the cell as highlighted.
Then, I chucked this in a loop. Iterating 100 at a time with a bit of delay, holding the iPhone with the App running.
And voila:
Smiling whilst brute forcing through the Beyblade Burst Evolution APP
Code in GitHub if you want to have a play:
and hosted if you want to scan using the APP
Then we made some Karaage Chicken for dinner.