Shinny Upatree – Sleigh Bell Lottery Cranberry Pi terminal

Shinny Upatree, needs some help. “Winning”. The Sleighbell Lottery!

They ask “Hey! Mind giving ole’ Shinny Upatree some help? There’s a contest I HAVE to win.
As long as no one else wins first, I can keep trying to win the Sleigh Bell Lotto, but this could take forever!
I’ll bet the GNU Debugger can help us. With the PEDA modules installed, it can be prettier. mean easier.”

The hint URL.

When we first load up the terminal, we get this, and we need to “Complete this challenge by winning the sleighbell lottery for Shinny Upatree.” (I’m guessing luck isn’t on Shinny’s Upatree side.)

We have three files here (ok, gdb and objdump are links, but you know what I mean!)

………. So I guess we’re not lucky either =(

Well, I guess it’s time to change that! Also, no, we’re not going to cut off a rabbit’s foot. Using, nm ./sleighbell-lotto to show interesting functions, we can see there is one called “winnerwinner”.

Let’s open sleighbell-lotto within GDP using “gdb -q ./sleighbell-lotto” to start the debugging!

So let’s break main here.

Also, run it now.

So, now let’s jump to “winnerwinner” sounds good to us?

Moreover, just like that, another rabbit get’s to save their legs. Oh, and we did it!

I know this guide/walkthrough is not too thick, and I don’t go into much detail mainly because GDP is a big program and somewhat hard to explain without making it too complicated.
If you liked this challenge, I would recommend using GDP more! Just look up guides on YouTube and other websites, I have included two links to learn more about GDP.

References:
http://www.yolinux.com/TUTORIALS/GDB-Commands.html
https://www.ibm.com/developerworks/library/l-gdb/index.html

Leave a Comment

Your email address will not be published. Required fields are marked *