Ouija

Khardur

Hack-The-Box2025writeup

156 Words ||42 Seconds

2025-03-17 00:00 +0000


Info

Objective

You’ve made contact with a spirit from beyond the grave! Unfortunately, they speak in an ancient tongue of flags, so you can’t understand a word. You’ve enlisted a medium who can translate it, but they like to take their time…

Workflow

Looking at the file it looks like an ELF binary. Opening it in Linux will result in a slow script generating the flag

Ouija_slow.png

Looking at the code in IDA, the main script uses a lot of sleeps to get around the code.

Pasted_image_20250317215705.png

We got sleeps with 10 as value; but also 1 as a value. Changing these to 0 seconds sleeps would speed it up drastically.

Using HxD to change the hex values bf01000000 and bf0a000000 to bf00000000 helps us run the script in an instant. resulting in letters being generated;

Ouija_patched_script.png putting all these letters togethers gives us the flag HTB{Sleping_is_not_obfuscation}