Post

Creating a self booting ZIP archive

This ZIP archive doubles as an x86 BIOS boot image and a Multiboot payload, while still starting with a valid ZIP local-file header and containing its own build sources.

The trick is to make the mandatory ZIP header bytes execute as harmless 8086 instructions until a timestamp field supplies a jump into the boot code. The article walks through ZIP’s competing parsing conventions, the bootstrap, and the assumptions involved; the author tested it in QEMU and on vintage hardware.