• RE//verse 2026 - Reversing Age of Empires 2

    In March, I gave a presentation at RE//verse 2026 titled “Reversing Age of Empires 2: Upgrading tools from Dark Age to Castle Age”. I talked about how reverse engineering Age of Empires 2 (Definitive Edition) led me to develop automation and plugins for Binary Ninja to decrypt and de-obfuscate its code, including a query system for pattern matching BNIL instruction sequences. The recorded talk is available on YouTube and you can download the slides here.

    Read more
  • SANS Holiday Hack Challenge 2022: Writeup

    This is my write-up for the SANS Holiday Hack Challenge 2022.

    Read more
  • dJulkalender 2022: Write-up

    The computer science chapter at my alma mater, KTH, arranges an advent calendar called “dJulkalendern”. It is a CTF-like puzzle with challenges (almost) every day until christmas and also a competition.

    Read more
  • Simpler unpickle payloads with the walrus operator

    When exploiting Python deserialization, specifically, Pickle, vulnerabilities you need to craft a payload consisting of a collection of arguments and a callable that is available on the server. Most commonly you can use the eval function and a string to be evaluated. This is fairly flexible and from here you can typically import the os module and call os.system to do whatever you want. Sometimes there can be some limitations in place, for example, you might not get the output of the application directly and it might be blocking outbound connections preventing reverse shells. In some situations you need the result of the unpickle operation to return an object with specific properties. If you are lucky and convenient classes exist on the target and you have knowledge of them you might get away with simply constructing one of them. If this is not the case it is slightly trickier.

    Read more
  • dJulkalender 2021: Write-up

    The computer science chapter at my alma mater, KTH, arranges an advent calendar called “dJulkalendern”. It is a CTF-like puzzle with challenges (almost) every day until christmas and also a competition.

    Read more

subscribe via RSS