{"id":184305,"date":"2026-11-18T03:36:34","date_gmt":"2026-11-18T01:36:34","guid":{"rendered":"https:\/\/prohoster.info\/blog\/news\/realizacziya-samozagruzhayushhihsya-zip-arhivov"},"modified":"2026-11-18T03:36:38","modified_gmt":"2026-11-18T01:36:38","slug":"implementing-self-loading-zip-archives","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/news\/implementing-self-loading-zip-archives","title":{"rendered":"\u00d6nkiad\u00f3 ZIP-arch\u00edvumok megval\u00f3s\u00edt\u00e1sa","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>David Oberhollenzer, a developer of the squashfs-tools-ng toolkit, proposed the concept of self-booting ZIP archives. The project is an adaptation of the self-extracting ZIP archive mechanism for using a ZIP file as a bootable image, which does not require separate extraction to boot the system contained in that image. At the same time, the image remains a fully functional ZIP archive that can be verified with the command &#171;unzip -t&#187;.      <\/p>\n<p>Unlike TAR or CPIO formats, the ZIP format starts with only a small header, while the directory of all files and their offsets is stored at the end of the file, allowing arbitrary data to be placed almost at the beginning of the archive. In the presented project, the parameters of the ZIP archive header are tailored so that they can be used as a boot sector for MBR.    <\/p>\n<p>The first bytes of the archive &#171;PK&#092;03&#092;04&#187; are interpreted by the x86 processor as machine code corresponding to 16-bit instructions of the i8086 processor: &#171;push %ax; dec %bx; add (%si),%ax&#187;. This is followed by a header with version, flags, compression method, and modification time, whose data can be arranged so that when executed, the content corresponds to harmless instructions and an unconditional jump jmp command that transfers control to the main bootloader code.     <\/p>\n<p>The ZIP file also specifies the signature &#171;1BADB002&#187;, which is identified by bootloaders supporting Multiboot, as an indicator of a compatible boot image (kernel). As a result, the ZIP image can be loaded using GRUB or by specifying the &#171;-kernel&#187; option in QEMU. In this case, the bootloader extracts the uncompressed binary file, places it in memory according to the header, and transfers control in 32-bit protected mode. The ZIP image can also be written to the first sector of the hard disk; in this case, the first 512 bytes are treated as a classic MBR.     <\/p>\n<p>Az \u00f6sszes kezd\u0151 bet\u00f6lt\u0151 k\u00f3d, bele\u00e9rtve a ZIP \u00e9s Multiboot fejl\u00e9cet, a GDT t\u00e1bl\u00e1zatot, a tartalom mem\u00f3ri\u00e1ba t\u00f6rt\u00e9n\u0151 bet\u00f6lt\u00e9s\u00e9nek logik\u00e1j\u00e1t \u00e9s a v\u00e9dett m\u00f3dba val\u00f3 \u00e1t\u00e1ll\u00e1st, 817 b\u00e1jtra siker\u00fclt zs\u00fafolni. A ZIP-arch\u00edvumban tal\u00e1lhat\u00f3 f\u00e1jlok t\u00f6m\u00f6r\u00edt\u00e9s n\u00e9lk\u00fcl ker\u00fcltek elhelyez\u00e9sre (a t\u00f6m\u00f6r\u00edt\u00e9si m\u00f3dszer mez\u0151j\u00e9ben 0 szerepel), \u00edgy a ZIP-arch\u00edvum mem\u00f3ri\u00e1ba t\u00f6rt\u00e9n\u0151 bet\u00f6lt\u00e9se ut\u00e1n k\u00f6zvetlen\u00fcl hozz\u00e1f\u00e9rhet\u00fcnk az arch\u00edvumban tal\u00e1lhat\u00f3 f\u00e1jlokhoz, a ZIP-arch\u00edvum v\u00e9g\u00e9n tal\u00e1lhat\u00f3 index (Central Directory) felhaszn\u00e1l\u00e1s\u00e1val a legegyszer\u0171bb f\u00e1jlrendszer szimul\u00e1l\u00e1s\u00e1hoz.<br \/>\n<br \/>Forr\u00e1s: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=66709\">opennet.ru<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u0430\u0432\u0438\u0434 \u041e\u0431\u0435\u0440\u0445\u043e\u043b\u043b\u0435\u043d\u0446\u0435\u0440 (David Oberhollenzer), \u0430\u0432\u0442\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f squashfs-tools-ng, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432. \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u044e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0441\u0430\u043c\u043e\u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f ZIP-\u0444\u0430\u0439\u043b\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0435\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0440\u0430\u0437\u043c\u0435\u0449\u0451\u043d\u043d\u043e\u0439 \u0432 \u044d\u0442\u043e\u043c \u043e\u0431\u0440\u0430\u0437\u0435. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u0440\u0430\u0437 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u043c ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 &#171;unzip -t&#187;. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 TAR \u0438\u043b\u0438 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-184305","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u0430\u0432\u0438\u0434 \u041e\u0431\u0435\u0440\u0445\u043e\u043b\u043b\u0435\u043d\u0446\u0435\u0440 (David Oberhollenzer), \u0430\u0432\u0442\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f squashfs-tools-ng, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Alexander Kovalev\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/news\/implementing-self-loading-zip-archives\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u0430\u0432\u0438\u0434 \u041e\u0431\u0435\u0440\u0445\u043e\u043b\u043b\u0435\u043d\u0446\u0435\u0440 (David Oberhollenzer), \u0430\u0432\u0442\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f squashfs-tools-ng, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/news\/implementing-self-loading-zip-archives\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-11-18T01:36:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-11-18T01:36:38+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83c\udfc6\u00d6nbet\u00f6lt\u0151 ZIP-arch\u00edvumok megval\u00f3s\u00edt\u00e1sa | ProHoster","description":"David Oberhollenzer, a squashfs-tools-ng eszk\u00f6z k\u00e9sz\u00edt\u0151je, javasolta az \u00f6nbet\u00f6lt\u0151 ZIP-arch\u00edvumok koncepci\u00f3j\u00e1t.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/news\/implementing-self-loading-zip-archives","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432 | ProHoster","og:description":"\u0414\u0430\u0432\u0438\u0434 \u041e\u0431\u0435\u0440\u0445\u043e\u043b\u043b\u0435\u043d\u0446\u0435\u0440 (David Oberhollenzer), \u0430\u0432\u0442\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f squashfs-tools-ng, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432.","og:url":"https:\/\/prohoster.info\/hu\/blog\/news\/implementing-self-loading-zip-archives","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2026-11-18T01:36:34+00:00","article:modified_time":"2026-11-18T01:36:38+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":[],"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/184305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=184305"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/184305\/revisions"}],"predecessor-version":[{"id":184306,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/184305\/revisions\/184306"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=184305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=184305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=184305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}