4 ms·
Diels-grabsch2: Self Hashing C Program (2019)
- casey2 7mo agoI thought it would print the hash of its binary :/
- AlotOfReading 7mo agoThat's not too difficult. You can #embed CC, invoke it on the program's source code via the exec functions, and hash the result.
- zvr 7mo agoIt's even easier to exec a hash of argv[0] and print it.