picoCTF Riscy Writeup
· ☕ 9 min read · 🦉 Aidan
Riscy
Analysis and solution of picoCTF’s RE Hard question Riscy
First contact
First thing was to run file on the provided binary, which yields the following:
|
|
As expected based on the title, RISC-V. Just a few points of interest, RVC means we can expect to see compressed instructions, which are the same but smaller. e.g. li can become c.li, using half the size for the instruction at the cost of supporting smaller values to load. It’s statically linked, so no external libraries needed, but also that means that’s not a method to attack it. Finally, it’s stripped, which isn’t the end of the world, an ELF will always give us entry.