الْحَمْدُ لِلَّهِ حَمْدًا كَثِيرًا طَيِّبًا مُبَارَكًا فِيهِ
Recently I participated in Connectors CTF along with my team “منتخب القهوة”. Awad and I were tackling Reverse Engineering challenges, unfortunately we couldn’t get the flags on time but we achieved a great progress and learned a lot in the journey.
Starwars2
We were able to secure to the first blood for this challenge only 35 minutes in competition.


First I started the game to show off my gaming skills

First two levels were easy I was able to 360 my way in. However, the 3rd level was an impossible to beat souls level.
Since the game is created using Gamemaker, I started Undertalemodtool.

I ignored the error and started digging, the game didn’t have a code section unlike Starwars 1

But we have other interesting options.
Aha moment!
I thought for a minute, what if we made ourselves invincible so I GPTed my way to find out how can I disable collision in the game.
Expanding game objects and checking properties for Obj_rock_big I found a collision event but it was between the bullet and the rock so it won’t help, I moved to check the the player object and voila!

We can see it has a collision event with the rock’s sprite. After removing the event we don’t have a collision with the rock so let’s wait.

Well yes, but actually no
Unfortunately, it wasn’t enough, I couldn’t still beat level 3.
So I decided to get back the rock object.
The rock object contains two other important events that I overlooked previously.

1- Creates a new rock.
2- step event which works every frame.
I removed both events and tested again, and still didn’t work. I removed all events of the rock object but I kept losing to the last room.
So I decided to remove the whole sprite because why not.

Now I’m alone in the space

All I had to do was to wait for the timers to finish.


That solution was never intended, that’s Karim’s reaction after I showed him the steps.

Some information may be outdated