A collection of funny concepts of writing code that works but is hard for humans to understand
All of the material is available in the PowerPoint presentation - Krazy Kode.pptx, which contains detailed explanations for every example
Some of the examples introduced are:
- Using regular expression to determine if a number is prime
- Implementing "main" as an int array instead of as a function
- Hiding Python code in the documentation
- Creating universal code that implements every program ever written
- Computing Pi using creative visual macros
And more...
The examples files from the presentation are available in the "demos" directory
- IOCCC Pi - https://en.wikipedia.org/wiki/International_Obfuscated_C_Code_Contest#Pi
- Main is usually a function - http://jroweboy.github.io/c/asm/2015/01/26/when-is-main-not-a-function.html
- Read the docs - inspired by WOPR – challenge #7 of Flare-On 6 (2019) - https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/FlareOn6_Challenge7_Solution_WOPR.pdf
- Movfuscator - https://github.com/xoreaxeaxeax/movfuscator
- Demovfuscator - https://github.com/kirschju/demovfuscator
- Reductio - https://github.com/xoreaxeaxeax/reductio
- Brainfuck compiler - https://github.com/elikaski/BF-it
- JSFuck - https://en.wikipedia.org/wiki/JSFuck
- Irregular Expression - https://iluxonchik.github.io/regular-expression-check-if-number-is-prime/
- printf-tac-toe - https://github.com/carlini/printf-tac-toe
- steg86 - https://blog.yossarian.net/2020/08/16/Hiding-messages-in-x86-binaries-using-semantic-duals