Skip to content
NewA calmer, faster ZeroHour

ZIP archive doubles as a PC boot sector and Multiboot kernel

Original title: Creating a self booting ZIP archive

Hacker News · securityby gdgghhhhh ()15 min read1 · 1 read
AI summary · x-ai/grok-4.7Summaries by Vani AI

The same file boots in QEMU, from a floppy image, and on Pentium, 486, and Am386 hardware.

A developer published boot.zip, a valid ZIP whose local file header for boot/ZIPHEAD.COM is also a DOS boot sector and contains the Multiboot magic 1BADB002. QEMU can load it with direct kernel boot, or the archive can be written to a floppy and booted by its own real-mode loader, which enables A20 and enters 32-bit protected mode. The archive includes the source and build script used to recreate it.

Key facts
  • The first bytes are a valid ZIP local file header starting with PK.
  • Multiboot magic 1BADB002 sits inside the header of boot/ZIPHEAD.COM.
  • The author booted it on a Pentium MMX, an i486 DX2, and an Am386DX-40.
  • Real-mode code begins at offset 0x50; the Multiboot entry is at offset 0x331.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

From the original article

15 min read at goliath32.com

So, after a debugging session the other day, I was having some shower Linux initramfs supports unpacking CPIO, a stupid, simple, standardized format. In the discussion on whether to support TAR instead, much

Hacker News · security

By gdgghhhhh · goliath32.com

Read the full article at Hacker News · security

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.