Hacker News new | ask | show | jobs
by 0xcde4c3db 543 days ago
An interesting quirk of the ISO 9660 standard is that the first sector of the disc is explicitly undefined, in order to accommodate a platform-specific boot sector. I sometimes wonder how many platforms could be accommodated by a single "polyglot" disc image.
2 comments

Bootable whatever polyglots are a recurring feature in PoC||GTFO, which I find to always be an enlightening read: https://github.com/angea/pocorgtfo?tab=readme-ov-file#0x22
That feels like the ISO equivalent of Cosmopolitan libc [0].

[0] - https://github.com/jart/cosmopolitan

> The Makefile will download cosmocc automatically.

What can go wrong ?

> It's recommended that you install a systemwide APE Loader. This command requires sudo access to copy the ape command to a system folder and register with binfmt_misc on Linux, for even more performance.

A security nightmare.

How is this different from all the other installation instructions asking to `curl https://foo/install.sh | sh` or even add a custom apt/rpm repo or just install a deb or rpm locally?

They all might get sudo access.

I do agree, but the same holds for the above methods too.