Diels-grabsch2: Self Hashing C Program (2019)(ioccc.org)
ioccc.org
Diels-grabsch2: Self Hashing C Program (2019)
https://www.ioccc.org/2019/diels-grabsch2/
3 comments
I thought it would print the hash of its binary :/
That's not too difficult. You can #embed CC, invoke it on the program's source code via the exec functions, and hash the result.
It's even easier to exec a hash of argv[0] and print it.