Developer David Oberhollenzer has created an experimental ZIP file that can boot an x86 computer without first being extracted, yet remains a valid archive readable by standard tools. The design exploits ZIP’s layout, which places a directory of file locations near the end of the archive. Its opening header is also arranged to act as machine instructions: the processor interprets the familiar ZIP signature and header fields as code, then follows a jump embedded in the timestamp to the bootloader. The archive passes the standard `unzip -t` integrity check and includes its source code and build scripts.
The file can be loaded by GRUB through a Multiboot header or started in QEMU with its kernel option. It also contains a BIOS boot sector in its first 512 bytes, so compatible systems can boot it directly from a floppy disk or hard drive. The boot code detects memory, enables the A20 line, loads the rest of the archive, and switches the processor into 32-bit protected mode; the necessary startup code, headers, and descriptor table fit within 817 bytes. Tests on an Intel 486, Pentium MMX, and AMD 386DX-40 demonstrate that it works on vintage hardware as well as in emulation. The project is a technical demonstration, not a practical replacement for conventional boot images, showing how a familiar file format can serve an unexpected purpose.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.