Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Diels-grabsch2: Self Hashing C Program (2019)
(opens in new tab)
(ioccc.org)
10 points
icwtyjj
3mo ago
3 comments
Save
Share
3 comments
3 comments · 1 top-level
top
newest
oldest
casey2
3mo ago
· 2 in thread
I thought it would print the hash of its binary :/
AlotOfReading
3mo ago
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.
zvr
3mo ago
It's even easier to exec a hash of argv[0] and print it.
j
/
k
navigate · click thread line to collapse