This repo contains scripts/programs that I developed during the FLAREON-9.
Many thanks to the FLARE team. It was an interesting journey and I liked it a lot :D
Read original write-ups here: flareon9-writeups.
- 1. ๐ฟ flaredle
- 2. ๐ณ pixelpoker
- 3. ๐ฑ magic8ball
- 4. ๐ darn_mice
- 5. ๐ t8
- 6. ๐งช alamode
- 7. ๐ธ anode
- 8. ๐ backdoor
- 9. ๐ encryptor
- 10. ๐ป Nur_getraumt
- 11. ๐ XXX
You probably won't win. Maybe you're like us and spent the year playing Wordle.
We made our own version that is too hard to beat without cheating.
TLDR: The hardest challenge ever.... No way you could solve it with strings
.
Writeup link: ๐ฟ flaredle
I said you wouldn't win that last one. I lied. The last challenge was basically a captcha.
Now the real work begins. Shall we play another game?
TLDR: You can decrypt one pixel at a time, but if you find a particular pixel, the whole image will be decrypted.
Writeup link: ๐ณ pixelpoker
You got a question? Ask the 8 ball!
TLDR: Find the magic phrase and shake the ball in the right order.
Writeup link: ๐ฑ magic8ball
"If it crashes its user error." -Flare Team
TLDR: RET, RET, RET, ...
Writeup link: ๐ darn_mice
Files list:
- bruteforce.py - Finds "correct" argument value using byte-by-byte bruteforce
- solve.py - Finds correct argument value
FLARE FACT #823: Studies show that C++ Reversers have fewer friends on average than normal people do.
That's why you're here, reversing this, instead of with them, because they don't exist.
Weโve found an unknown executable on one of our hosts. The file has been there for a while,
but our networking logs only show suspicious traffic on one day. Can you tell us what happened?
TLDR: Reverse it all the way to the end. And either find a random seed or spoof a hash value to decrypt the flag.
Writeup link: ๐ t8
Files list:
FLARE FACT #824: Disregard flare fact #823 if you are a .NET Reverser too.
We will now reward your fantastic effort with a small binary challenge. You've earned it kid!
TLDR: Open it in IDA as a PE and not as a .NET file. Find the RC4 key and decrypt the flag. Profit!
Writeup link: ๐งช alamode
Files list:
You've made it so far! I can't believe it! And so many people are ahead of you!
TLDR: Just, ... just do it! Seriously. Iteratively find all corner cases, deobfuscate further and further, and you will get clean flag constraints. In the end, I used bitwuzla-powered DSE to find the flag.
Writeup link: ๐ธ anode
Files list:
- solve_angr.py - Angr-powered solver (didn't work)
- solve_triton.py - Triton-powered solver (successfully found the flag)
- deobfuscate-unflatten.js - Deobfuscation script part 1
- deobfuscate-optimize-rand-inlining.js - Deobfuscation script part 2
- deobfuscate-constant-propagation.js - Deobfuscation script part 3
I'm such a backdoor, decompile me why don't you...
TLDR: That was a HELL! The most time-consuming challenge for me. I've spent 30+ hours on it (mostly because of some silly mistakes that hindered my progress). But the idea behind is straightforward - write a deobfuscator :D The next step is to reverse the code and find a way to generate the correct key.
Writeup link: ๐ backdoor
Files list:
- Deobfuscator - C# dnlib-based deobfuscator
- Implant - C# DLL implant
- ProxyImplant - C# DLL proxy implant (loads the Implant)
You're really crushing it to get this far. This is probably the end for you. Better luck next year!
TLDR: This is an RSA challenge. However, the flag was encrypted using a private exponent, and you're given a public one. So you can simply decrypt the flag using the public exponent. That's how RSA works.
Writeup link: ๐ encryptor
Files list:
- decryptor.py - Restores ChaCha key and decrypts the flag
This challenge is a Macintosh disk image (Disk Copy 4.2 format, for those who need to know) containing a 68K Macintosh program.
You must determine the passphrase used to decode the flag contained within the application.
Super ResEdit, an augmented version of Apple's ResEdit resource editor which adds a disassembler, is also included on the disk image to help you complete the challenge, though you will likely also need to do some outside research to guess the passphrase.
This application can be run on any Macintosh emulator (or any real Macintosh from as far back as a Mac Plus running System 6.0.x up to a G5 running Classic).
The setup of the emulation environment is part of the challenge, so few spoilers live here, but if you want to save yourself some headaches, Mini vMac is a pretty good choice that doesn't take much effort to get up and running compared to some other options.
This application was written on a Power Macintosh 7300 using CodeWarrior Pro 5, ResEdit, and Resourcerer (my old setup from roughly 1997, still alive!).
It was tested on a great many machines and emulators, and validated to run well on Mac OS from 6.0.8 through 10.4. Happy solving! Be curious!
TLDR: Install the mini vMac and run the program. And either you are smart enough to try the first line of 99 Luftballons lyrics (in Deutsche!) or not (like me). In the second case, just sit around for a while, get an idea of how the check is done (it's a simple XOR), and try a known plaintext attack ("@flare-on.com"). Get part of the song lyrics, go to Google once again and find the rest of the lyrics. And you're all set.
Writeup link: ๐ป Nur_getraumt
Files list:
- crack.py - Performs a known plaintext attack
Protection, Obfuscation, Restrictions... Oh my!!
The good part about this one is that if you fail to solve it I don't need to ship you a prize.
TLDR: Open it in API Monitor, and find out that it tries to connect to "http[:]//evil[.]flare-on.com/". Add an entry to the hosts file. Rerun the program. Observe a request to the localhost. Find out that it is encrypted in some way. Try guessing. Maybe it's xor? Add breakpoints to python's xor
functions. Find out that the number of XOR calls exactly matches the number of bytes in the flag. Use FRIDA to hook xor
function and dump the flag. Profit!
Writeup link: ๐ XXX
Files list:
- crack.py - Frida script to hook
xor
function and dump the flag - run_frida.py - Python Frida runner