Disassmbler , Emulator written in python language to disassemble the Recurso compiled bytecode.
- Disassmbles the bytecode to Recurso instructions
- Emulates the execution of the Recurso bytecode
This was written completely based on given Recurso Executable in the CTF.
By analyszing the decompiled code of given executable and understanding it -> written this disassmbler, emulator to solve the challenge.
Recurso is a stack based interpreted functional programming language given in K3RN3LCTF.
The language was created by Abraxus
Recurso Compiler & Instruction set & More about it : https://github.com/Kasimir123/Recurso
There are two challanges given in the CTF. based on this Recurso VM
- Recurso (file : leFlag.recc)
- Rasm (file : rasm.recc)
Both are files compiled by Recurso Executable which is emulator, compiler.
We can run recc bytecode file with the given Recuso file.
challenge files (.recc - Recurso compiled) contain the flag checking logic.
By getting functionality of them , Reversing the logic -> getting flag.
- Write-ups are there in my blog : https://d1r3wolf.blogspot.com/