<https://justine.lol/cosmopolitan/index.html> this...
# core
https://justine.lol/cosmopolitan/index.html this blew my mind this morning :D
Looks very interesting! Presumably this wouldn't just work directly with osquery due to a ton of code being gated by compile time flags?
It definitely won’t work
One thing they don't cover here is compilation time. I wonder if there is a big difference compared to a normal C executable.
oh wow the hack they use to make this work is actually hilarious
it all hinges on the fact the original Thompson Shell was written before shebangs were used. So you they can format the first bytes as a windows PE with MZ
mind blown 1
It reminded me of https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html (really funny if you are into these things)
That sort of shebang stuff comes up a lot in the polyglot hackery corners.