hn.today

A Zip Archive That Boots Your PC Is Now a Reality

linuxiac.com8 points1 comments
Screenshot of A Zip Archive That Boots Your PC Is Now a Reality

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.

Read on linuxiac.com1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.