Y
Hacker News
new
|
ask
|
show
|
jobs
Diels-grabsch2: Self Hashing C Program (2019)
(
ioccc.org
)
10 points
by
icwtyjj
98 days ago
1 comments
casey2
93 days ago
I thought it would print the hash of its binary :/
link
AlotOfReading
93 days 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.
link
zvr
92 days ago
It's even easier to exec a hash of argv[0] and print it.
link