A brave warrior stands in front of the harshest enemy, a untouchable evil spirit who possesses his allies. Will he be able to overcome this enemy?A brave warrior stands in front of the harshest enemy, a untouchable evil spirit who possesses his allies. Will he be able to overcome this enemy?

Category: Reverse

Solver: t0b1, lmarschk

For this challenge, the gameboy rom was supplied.

Walkthrough

  1. Download the binary
  2. Find out it is a gameboy rom
  3. apt install visualboyadvance
  4. VisualBoyAdvance Patchofthe_Ninja.gb
  5. GameBoy game runs, there is a Dojo that can’t be entered
  6. It says: I need to patch the evil spirits away
  7. Lets use GhidraBoy for Ghidra and sameboy to debug and patch the binary.
  8. Find out that all prior steps were not needed, just use the simple, old stuff:
  9. Use strings Patchofthe_Ninja.gb | grep HTB to get the flag HTB{C00l_Shurik3n}
lmm@lmm-think-05:~/Documents/htb/ctf_2020$ strings -n 10 Patch_of_the_Ninja.gb
3>PATCHOFTHENINJA
#2*#2*#"^#V!
#2*#2*#"^#V!
#2*#2*#2^#V!b0
9^#V#~#foDM!
9V+^+~+ngDM
9V+^+~+ngDM
9V+^+~+ngDM
9V+^+~+ngDM
	V+^+F+N+:ng
#2*#2*#"^#V!
#2*#2*#"^#V!
#2*#2*#"^#V!
#2*#2*#"^#V!
~++2^#V!b>
You have retrieved
Congratulations!
This is not the
Flag you're
looking for.
Where am i? What
For a second I
felt really weird,
what happened?
My head hurts a
lot, what was
Ninjas don't run
away from a
challenge...
The water seems
very calm.
Hey you shouldn't
be in here!
This is the "Hack
the box" server
room. Staff only!
He's stuck in some
trance-like
I need to patch
the evil spirits
HTB{C00l_Shurik3n}
` ` ` p h ` ` `
` d j ` ` ` p `
()*+,-./0123456(
789:;<=>?@ABCDE7
**much more content**

Flag screenshot